function hideDiv (divid)
{
	  document.getElementById('bodydiv').style.display = "none";
	  document.getElementById('bodydiv').style.filter = "alpha(opacity=0)";
					  
	  document.getElementById(divid).style.display = "none";
	  document.getElementById(divid).style.filter = "alpha(opacity=0)";					  
}
function showDiv(divid)
{	
	document.getElementById(divid).style.display = "block";	
	document.getElementById(divid).style.left=(document.body.offsetWidth/2)-275;
	document.getElementById(divid).style.top = showValues() + 200;	
	document.getElementById(divid).style.filter = "alpha(opacity=100)";

	document.getElementById('bodydiv').style.display = "block";
	document.getElementById('bodydiv').style.height = document.body.scrollHeight;
	document.getElementById('bodydiv').style.width = document.body.scrollWidth;					
	document.getElementById('bodydiv').style.filter = "alpha(opacity=60)";				
	document.getElementById('bodydiv').style.MozOpacity = 0.6;
}

function showValues() {
	var h = window.pageYOffset ||
           document.body.scrollTop ||
           document.documentElement.scrollTop;
           
   return( h ? h : 0 );
}

<!--

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 clear_textbox(boxtext)
{
	if (boxtext.value == "Type email here")
	boxtext.value = "";
}
function show(div)
{
	var divtoshow=document.getElementById(div);
	divtoshow.style.display="block";
}
		
function hide(div)
{
	var divtoshow=document.getElementById(div);
	divtoshow.style.display="none";
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

/*if(!readCookie("welcome")){
	createCookie("welcome", 1, 1);
	window.location = "http://" + window.location.hostname + "/welcome.php?url=" + window.location.href ;
}*/

