function poptastic(url)
{
	newwindow=window.open(url,'name','height=862,width=557');
	if (window.focus) {newwindow.focus()}
}
function poptastic_b(url)
{
	newwindow=window.open(url,'name','height=600,width=370');
	if (window.focus) {newwindow.focus()}
}
function poptastic_c(url)
{
	newwindow=window.open(url,'name','height=445,width=500');
	if (window.focus) {newwindow.focus()}
}
function poptastic_d(url)
{
	newwindow=window.open(url,'name','height=390,width=580');
	if (window.focus) {newwindow.focus()}
}
function poptastic_e(url)
{
	newwindow=window.open(url,'name','height=400,width=500');
	if (window.focus) {newwindow.focus()}
}
function poptastic_f(url)
{
	newwindow=window.open(url,'name','height=360,width=500');
	if (window.focus) {newwindow.focus()}
}
function poptasticm(url)
{
	newwindow=window.open(url,'name','height=470,width=500');
	if (window.focus) {newwindow.focus()}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("left")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
