
	var currentPop = 1;
	var noClear = 0;

	function clearpops()
	{	
		if (noClear==0)
		{		
			document.getElementById('sn1').style.display = 'none';
			document.getElementById('sn2').style.display = 'none';
			//document.getElementById('sn3').style.display = 'none';
			document.getElementById('sn4').style.display = 'none';
			document.getElementById('sn5').style.display = 'none';
		}
	}

	function cpt()
	{	
		noClear = 0;
		setTimeout("clearpops()",1000);
	}

	function snpop(e,h)
	{	
		noClear = 0;
		clearpops();

		Popup = document.getElementById(e);
		
		if (Popup.style.display=="block" && t==currentPop)
		{
			clearpops();
		}
		else
		{	
			noClear = 1;
			//alert(document.documentElement.scrollTop+ " " +document.documentElement.scrollLeft);
			
			t = document.getElementById(h);
			Popup.style.display="block";
			currentPop = t;
		}
	}	

function equalize()
{
	if (document.getElementById('content').offsetHeight < document.getElementById('col3').offsetHeight+150)
	{
		document.getElementById('content').style.height = (document.getElementById('col3').offsetHeight+150)+'px';
	}
}

function equalizehome()
{
	if (document.getElementById('ul1').offsetHeight > document.getElementById('ul2').offsetHeight)
	{
		document.getElementById('ul2').style.height = (document.getElementById('ul1').offsetHeight-12)+'px';
	}
	else
	{
		document.getElementById('ul1').style.height = (document.getElementById('ul2').offsetHeight-12)+'px';
	}
}

function echeck(str) {

	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("That is not a valid email address.")
	   return false
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("That is not a valid email address.")
	   return false
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("That is not a valid email address.")
		return false
	}

	 if (str.indexOf(at,(lat+1))!=-1){
		alert("That is not a valid email address.")
		return false
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("That is not a valid email address.")
		return false
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
		alert("That is not a valid email address.")
		return false
	 }
	
	 if (str.indexOf(" ")!=-1){
		alert("That is not a valid email address.")
		return false
	 }

	 return true					
}