// Description: surfchek svs
// Author: Triangle Design

function SurfChekValidation() {
	var rand_step1 = new Date();var Seed0 = rand_step1.getDay();
	var Seed1 = rand_step1.getHours();var Seed2 = rand_step1.getMinutes();
	var Seed3 = rand_step1.getSeconds();
	var start=Seed3;
	
	if(Seed0==0){Seed0=1}if(Seed1==0){Seed1=1}
	if(Seed2==0){Seed2=1}if(Seed3==0){Seed3=1}
	var tmp2=(Seed3*Seed2)+(Seed0*Seed1)+(Seed3+30)
	if (tmp2<=99999){Show1="9"+tmp2+1}else{Show1=tmp2}if(Seed3<=9){fill1=Seed3}
	else{fill1=(Seed3)}if(Seed3<=9){fill2=Seed3+"5"}
	else{fill2=Seed3}if(Seed3<=9){fill3=fill2+Seed3}
	else if(Seed2<=9){fill3=fill2+Seed2}else if(Seed1<=9){fill3=fill2+Seed1}
	else{fill3=fill2+"2"}
	
	var ih = Show1.length;
	if(ih==1){Show1=fill2+Show1+fill1+fill3;}
	if(ih==2){Show1=fill1+Show1+fill3+fill1;}
	if(ih==3){Show1=Show1+fill3+fill1;}
	if(ih==4){Show1=fill3+Show1;}
	if(ih==5){Show1=fill2+Show1;}
	if(ih==6){Show1=Show1+fill1;}
	
	var ih = Show1.length;
	if(ih==1){Show1=fill1+Show1+fill3+fill2;}
	if(ih==2){Show1=fill3+fill1+fill1+Show1;}
	if(ih==3){Show1=fill3+Show1+fill1;}
	if(ih==4){Show1=Show1+fill3;}
	if(ih==5){Show1=Show1+fill2;}
	if(ih==6){Show1=fill1+Show1;}
	
	document.validation.svs.value = (Show1);
	setTimeout ("SurfChekValidation()", 1000);
}

function popItguarantees() {
    openWin = window.open("popups/guarantee.html","guarantee","top=15,left=15,width=433,height=500,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no");
    openWin.focus();
}

function popItsvs() {
    openWin = window.open("popups/svs.html","svs","top=15,left=15,width=412,height=431,buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
    openWin.focus();
}

