// JavaScript Document
function rollOver(x, y)
{
document.getElementById(x).src=y;
}
function rollOut(x, y)
{
document.getElementById(x).src=y;
}

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 sidCheck()	{
	var x = document.getElementById('sid').innerHTML;
	var y = new String(document.getElementById('code').value);	
			
	if (x == y){ 
		document.getElementById('sCheck').innerHTML="<span class='greenSmall'>Correct</span>";
		document.getElementById('code').style.backgroundColor="#E1FFE6";
		}
	else { 
		document.getElementById('sCheck').innerHTML="<span class='redSmall'>Wrong</span>";
		document.getElementById('code').style.backgroundColor="#FDD";
}
					}
					
function count()
	{
	var t = 8;
	var c = document.getElementById('password').value;
	var y = c.length;
	document.getElementById('pass').innerHTML=t-y+" Remaining";
	var z = t-y;
	if (z == 0)
		{
	document.getElementById('password').style.backgroundColor="#E1FFE6";
		}
	else
	{
	document.getElementById('password').style.backgroundColor="#FDD";
	}
	}	
	
function setField()
{
	document.form1.name.disabled=false;
	document.form1.url.disabled=false;
	document.form1.password.disabled=false;
	document.form1.email.disabled=false;
	document.form1.code.disabled=false;
}

