

	function changeImages(img_name, new_src)
	{
		if(document.images)
			document.images[img_name].src=eval(new_src+".src");
	}

	function openw(linki,Wwidth,Wheight)
	{
		var	Pwidth=screen.width/2-Wwidth/2;
		var	Pheight=screen.height/2-Wheight/2;
		x=window.open(linki,"window","width="+Wwidth+",height="+Wheight+",scrollbars,top="+Pheight+",left="+Pwidth);
		if(x){
			x.focus();
		}
		else{
		}
	}

	function init(){
		
	}

        
        
	function checkEmail(){
		var str=document.formi.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str)){
			testresults=true;
			//document.formi.submit();
		}
		else{
			alert("Please input a valid email address!")
			testresults = false
		}
		return testresults;
	
	}
	
	
	function reg(){
		location = "registration.asp"
	}
	
	function upload(){
	openw('upload.asp',550,200);
	}
	
	function password(){
	openw('password_reminder.asp',550,130);
	}

