function popup(url,w,h,scroll,poptype)
{
	var top = (screen.height-h)/2;
	var left = (screen.width-w)/2;
	top=0;
	left=0;
	if(poptype!='p')url='popup.php?imgname='+url+'&height='+h+'&width='+w;
	w=w+25;
	h=h+45;
	var customize = "toolbar=no,menubar=no,resizable=no,scrollbars="+scroll+",width="+w+",height="+h+",top="+top+",left="+left;
	var x = window.open(url,'_blank',customize);
}

function verify_register_frm()
{
	if(document.f1.email.value=='')
	{
		alert("E-mail Address can't be blanked!");
		document.f1.email.focus();
		return false;
	}
	if(document.f1.email.value!=document.f1.ver_email.value)
	{
		alert("E-mail Address does not match");
		document.f1.ver_email.focus();
		return false;
	}
	if(document.f1.password.value=='')
	{
		alert("Password can't be blanked!");
		document.f1.password.focus();
		return false;
	}
	if(document.f1.password.value!=document.f1.ver_password.value)
	{
		alert("Password does not match");
		document.f1.ver_password.focus();
		return false;
	}
	return true;
}

function chklogin()
{
	str="Please Give : \n\n";
	flag=0;
	if(document.frm_login.email.value=="")
	{
		str+="E-Mail\n";
		flag=1;
	}
	if(document.frm_login.password.value=="")
	{
		str+="Password\n";
		flag=1;
	}
	if(flag==1)
	{
		alert(str);
		return false;
	}
	return true;
}

function chkcontact()
{
	str="Please Give : \n\n";
	flag=0;
	if(document.frm_contact.subject.value=="")
	{
		str+="Subject\n";
		flag=1;
	}
	if(document.frm_contact.message.value=="")
	{
		str+="E-mail Message\n";
		flag=1;
	}
	if(flag==1)
	{
		alert(str);
		return false;
	}
	return true;
}
function chkcontactus()
{
	str="Please Give : \n\n";
	flag=0;
	if(document.frm_contact.yname.value=="")
	{
		str+="Your Name\n";
		flag=1;
	}
	if(document.frm_contact.yemail.value=="")
	{
		str+="Your Email\n";
		flag=1;
	}
	if(document.frm_contact.subject.value=="")
	{
		str+="Subject\n";
		flag=1;
	}
	if(document.frm_contact.message.value=="")
	{
		str+="E-mail Message\n";
		flag=1;
	}
	if(flag==1)
	{
		alert(str);
		return false;
	}
	return true;
}

