
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=583,height=600,screenX=10,screenY=10');");
}


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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function submit()
{
	document.freetrial.submit();
}


// START ERRORBOX


function getValue(v) { return(document.getElementById(v)); }
function getValueS(v) { return(getValue(v).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function isset(v) { return((typeof(v)=='undefined' || v.length==0)?false:true); }
function XYwin(v) { var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); }

function sTOG() { document.onclick=function(){ getValueS('sbg').display='none'; getValueS('sbox').display='none'; document.onclick=function(){}; }; }
function sBOX(v,b,e,c) { setTimeout("sTOG()",100); getValueS('sbg').height='1500px'; getValueS('sbg').display='block'; getValue('sbox').innerHTML=v+'<div class="sX" onClick="sTOG();">'+e+'<br /><br />'+c+''+"<\/div>"; getValueS('sbox').left=Math.round((XYwin(1)-b)/2)+'px'; getValueS('sbox').top=Math.round((XYwin(0))/2)+'px'; getValueS('sbox').width=b+'px'; getValueS('sbox').display='block'; }


// END ERRORBOX

function show(what) {
	if(what=='callback')
	{
		if(document.getElementById("callback").style.display == 'none') {
			document.getElementById("callback").style.display = '';
			document.getElementById("cb-bt-dw").style.display = 'none';
			document.getElementById("cb-bt-up").style.display = '';
		} else {
			document.getElementById("callback").style.display = 'none';
			document.getElementById("cb-bt-dw").style.display = '';
			document.getElementById("cb-bt-up").style.display = 'none';
		}
	}
	else if(what=='tellafriend')
	{
		if(document.getElementById("tellafriend").style.display == 'none') {
			document.getElementById("tellafriend").style.display = '';
			document.getElementById("tf-bt-dw").style.display = 'none';
			document.getElementById("tf-bt-up").style.display = '';
		} else {
			document.getElementById("tellafriend").style.display = 'none';
			document.getElementById("tf-bt-dw").style.display = '';
			document.getElementById("tf-bt-up").style.display = 'none';
		}
	}	

}

