// JavaScript Document
//POPup Contact...
<!--
function contact(url) {
var newwindow=window.open(url,'name1','height=640,width=600,left=200,top=20,scrollbars=yes');
if (window.focus) {newwindow.focus()}
}

function popUp(url) {
	var newwindow=window.open(url,'name','left=124,top=20,height=700,width=800,scrollbars=yes,resizable=no');
	if (window.focus) {newwindow.focus()}
}

function contact2(url) {
var newwindow=window.open(url,'name1','height=640,width=600,left=200,top=20,scrollbars=yes');
if (window.focus) {newwindow.focus()}
	window.close();
}

function printWindow(id){	
	var thisimg = document.getElementById('0');
	var newWindow2=window.open('print.php?id='+id+'&id2='+thisimg.src+'','name2','scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes');
}
		
function resets(){
	document.getElementById("Layer3").style.visibility = "hidden";
	document.getElementById("Layer4").style.visibility = "visible";
	document.location.reload();
}

function seeLargeImg(id,src){
	document.getElementById('0').src=src; 
}

function onMouseImg(id){
	document.getElementById(id).className = "thumbSelected";
}
	
function outMouseImg(id){
document.getElementById(id).className = "thumbNormal";
}
function show(){
document.getElementById('SLayer1').style.visibility = 'visible';
document.getElementById('SLayer8').style.visibility = 'visible';

}
function hidden(){
document.getElementById('SLayer1').style.visibility = 'hidden';
document.getElementById('SLayer8').style.visibility = 'hidden';
}
function validate(form_id,email,name) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.forms[form_id].elements[email].value;
   var name = document.forms[form_id].elements[name].value;
   if(name==""){
   alert('You must add subject');
    return false;
   }
   else if(reg.test(address) == false) {
      alert('Invalid Email Address');
      return false;
   }
}

function launch(url){
	var vidWin=window.open(url,'vidWin','left=300,toolbar=no,top=150,height=388,width=381,scrollbars=no,resizable=no');
	vidWin.focus(); 
} 
