<!--
// Path to images directory
var gsPath = "images/";

function imgOff(sName) {
	if (document.images) {
		document[sName].src = gsPath + sName + "_off.gif";
	}
}
function imgOn(sName) {
	if (document.images) {
		document[sName].src = gsPath + sName + "_on.gif";
	}
}
function openStill(url) {
	var w = 400;
	var h = 300;
	leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	topPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no';
	var popup = window.open(url,'stills',windowprops);
	if (popup.opener == null) {		// check if opener property exists
		popup.opener = self;		// define opener property
	}
	popup.focus();
}
function openDisclaimer(url) {
	var w = 372;
	var h = 292;
	leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	topPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no';
	var popup = window.open(url,'disclaimer',windowprops);
	popup.focus();
}
function loadAddMysite()
{
	document.webringRegistration.siteURL.value="http://";
	document.webringRegistration.siteName.focus();
}

function startTimeCounter(sURL)
{
	secs = 60; // Number of secs to delay -CHINA-studio
	wait = secs * 100;
	document.forms.register.Submit.disabled =true;
	for(i=1;i<=(wait/100);i++)
	{
		window.setTimeout("doUpdate(" + i + ")", i * 100);
	}
	window.setTimeout("Timer()", wait);
}

function doUpdate(num)
{
  if(num == (wait/100))
	{
		//document.forms.register.Submit.value = " agree ";
	}
	else
	{
		wut = (wait/100)-num;
		document.forms.register.timecounter.value ="(" + wut + ")";
	}
 }

 function Timer()
 {
	 document.forms.register.Submit.disabled =false;
	 //alert(sURL);
}
function imgOrg() {
  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_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function imgShow() {
  var i,j=0,x,a=imgShow.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 openWindow(url,winName,w,h) {
	leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	topPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no';
	var popup = window.open(url,winName,windowprops);
	if (popup.opener == null) { 	// check if opener property exists
		popup.opener = self; 		// define opener property
	}
	popup.focus();
}

//-->