//scripts to open popup and to close popup and return to main window
function rwspop(mylink, windowname)
{
if (! window.focus)return true; 
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else 
   href=mylink.href;
window.open(href, windowname, 'width=825,height=930,top=50,left=100,scrollbars=yes,status=no,menubar=no');
return false;
}
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=440,height=520,top=50,left=100,scrollbars=yes,status=no,menubar=no');
return false;
}
function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}
function linkpop(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=400,top=50,left=100,scrollbars=yes,resize=yes,status=no,menubar=no');
return false;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}