var mondelai, Theimage;
var SiteURL='http://www.venustemple.com';

//=================================
function ShowPicture(k){
clearTimeout(mondelai);
if(k!=null && k!=''){
document.getElementById("fullphoto").innerHTML='<img src="http://www.diokou.com/pics/'+FolderPath+'/'+PictureList[k]+'" id="fullpic" name="fullpic" />';
}
document.getElementById("fullphoto").style.display="block";
return true;
}

//=================================
function HidePhoto(){
var tmp;
clearTimeout(mondelai);
document.getElementById("fullphoto").style.display="none";
return true;
}


//=======================================
function HidePicture(){
mondelai=setTimeout(HidePhoto,1000);	
}



function HoldPicture(){
clearTimeout(mondelai);
}

//=====================================
function ValidateContact(){
var Msge, tmp;
tmp=document.contactform.yourname;
Msge='Please provide your name';
if(!CheckField(tmp, Msge)){return false;}
tmp=document.contactform.youremail;
Msge='Please provide your email address';
if(!CheckEmail(tmp, Msge)){return false;}
tmp=document.contactform.yourmessage;
Msge='Please enter your message/comments';
if(!CheckField(tmp, Msge)){return false;}

document.contactform.submit();
return true;	
	
}

//===========================================
function ValidateSearch(theform){
if(!CheckField(theform.keywords, 'Enter Search keywords')){return false; }
	
return true;	
}

/*============================================================================================= */
/*============================================================================================= */
function ShowChildContainer(pid, k){
var n=document.getElementById(pid).childNodes.length;
  for(i=0; i<n; i++){
  var tmp=document.getElementById(pid).childNodes[i];
  if(i!=k){tmp.style.display="none"; }
  else {tmp.style.display="block";}
  }

}


//===================================
function RedeemDiscount(theform){
if(!CheckEmail(theform.email, 'Your email address?')){return false; }
if(!CheckField(theform.certificate, 'Discount certificate ID?')){return false; }
return true;	
}

//===================================
function GetDiscount(theform){
if(!CheckField(theform.firstname, 'Your First Name?')){return false; }
else if(!CheckEmail(theform.email, 'Your email address?')){return false; }
return true;
}

//===================================
function RedeemCertificate(theform){
if(!CheckField(theform.certificate, 'Discount certificate ID?')){return false; }
else if(!CheckEmail(theform.recipientemail, 'Your email address?')){return false; }
return true;	
}

//===================================
function BuyCertificate(theform){
if(!CheckField(theform.recipient, 'Recipient Name?')){return false; }
else if(!CheckEmail(theform.recipientemail, 'Recipient Email Address?')){return false; }
return true;
}

/*============================================================================================= */
/*============================================================================================= */
