// JavaScript Document

/*************** script for help box*************/

function showHelp(id){
	helpId = "helpText" + id.id;
	document.getElementById(helpId).style.display = "block";

}

function hideHelp(id){
	helpId = "helpText" + id.id;
	document.getElementById(helpId).style.display = "none";
	
}

function clearText(obj) {
	obj.value = "";
	obj.style.color ="#000000";
}

function MM_openWindow(mylink, windowname, features)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, features);
	return false;
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(href,winName,features);
}

function displayinfo()
{
	if (document.personal_info.cardType.value == "League")
			document.getElementById("divTwo").style.display = "block";
	else 
			document.getElementById("divTwo").style.display = "none";
	
	
	if (document.personal_info.cardType.value == "Royale")
			document.getElementById("divRoyale").style.display = "block";
	else 
			document.getElementById("divRoyale").style.display = "none";
			document.getElementById("divTwo1").style.display = "none";
}
function displayWatch(val)
{	
    if (val == "8500" || val == "12000")
	{
	  	document.getElementById("divTwo1").style.display = "block";	
	}
	else{
		
		document.getElementById("divTwo1").style.display = "none";
	}	
}
function showother(val){
	
	if(val == 1){
	if(document.Contact_details.City1.value == "Others"){
		document.getElementById("divOtherCity").style.display = "inline";
	}else{
		document.getElementById("divOtherCity").style.display = "none";
		}
	}
	if(val==2){
	if(document.Contact_details.City2.value == "Others"){
		document.getElementById("divOtherCity2").style.display = "inline";
	}else{
		document.getElementById("divOtherCity2").style.display = "none";
		}
	}
}

function checkform(){
	
	if(document.personal_info.NameOnCard.value==""){
		document.personal_info.NameOnCard.style.border = "2px solid red";
		return false;
		}
	}
