function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function tc() {
		window.open('#',"win","width=680,height=500,menubar=0,scrollbars=Auto,resizable=no");
}

function productmainpage() {
	location.href= "#";
}

//Validation form

function validate_email(field,alerttxt)
	{
		with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
			if (apos<1||dotpos-apos<2) 
  				{alert(alerttxt);return false}
			else {return true}
		}
	}

function validate_required(field,alerttxt)
	{
		with (field)
	{
		if (value==null||value=="")
 			 {alert(alerttxt);return false}
		else {return true}
		}
	}

function validate_number(field,alerttxt){
	with (field)
	{
	var x=value
	var anum=/(^\d+$)|(^\d+\.\d+$)/
		if (anum.test(x))
			return true
		else{
			alert(alerttxt);return false}
	}
}


function validate_form(thisform)
	{
		with (thisform)
	{
		if (validate_required(Name,"Name must be filled out!")==false)
 			 {Name.focus();return false}
		if (validate_number(Tel,"Not a valid telephone number!")==false)
 			 {Tel.focus();return false}
		if (validate_required(Company,"Company must be filled out!")==false)
 			 {Company.focus();return false}
		if (validate_email(Email,"Not a valid e-mail address!")==false)
  			{Email.focus();return false}
		}
	}

// End of Validation Form-->

function right( val ) {
  if (navigator.appName == 'Netscape' && (val.which == 3 || val.which == 2))
    return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && 
          (event.button == 2 || event.button == 3)) {
    alert("Jenmon. All Rights Reserved. ");
    return false;
  }
  return true;
}

document.onmousedown = right;
document.onmouseup = right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown = right;
window.onmouseup = right;
