﻿// JScript File


function txtborder()
{
	
	
	document.getElementById("nam").style.backgroundColor="#EDEDED";
	document.getElementById("nam").style.borderColor="#666666";
	//document.getElementById("num").style.color="#464646";
	//alert(document.getElementById("nam").value);
	if((document.getElementById("nam").value=="") || (document.getElementById("nam").value=="Enter your Name"))
	{
	document.getElementById("nam").value="";
	}
	else
	{
	document.getElementById("nam").style.backgroundColor="#838383";
	document.getElementById("nam").style.borderColor="#666666";
	document.getElementById("nam").style.color="#ffffff";
	}
	if((document.getElementById("num").value=="") || (document.getElementById("num").value=="Enter your Number"))
	{
	document.getElementById("num").value="Enter your Number";
	document.getElementById("num").style.color="#464646";
	document.getElementById("num").style.backgroundColor="#ffffff";
	}
	else
	{
			document.getElementById("num").style.backgroundColor="#838383";
	document.getElementById("num").style.borderColor="#666666";
	document.getElementById("num").style.color="#ffffff";
	}
}

//function normalbg()
//{
	//if( (document.getElementById("nam").value=="") || (document.getElementById("nam").value=="Enter your Name") || (document.getElementById("num").value=="Enter your Number"))
	//{
		
	//document.getElementById("nam").style.backgroundColor="ffffff";
	//document.getElementById("nam").style.borderColor="#000000";
	//	document.getElementById("nam").style.color="#464646";
	//document.getElementById("nam").value="ENTER YOUR NAME";
	//document.getElementById("num").style.backgroundColor="#ffffff";
	//document.getElementById("num").style.borderColor="#000000";
	//document.getElementById("num").style.color="#464646";
	//document.getElementById("num").value="ENTER YOUR NUMBER";
	//}

	
//}

function normalbg()
{
	
	if( (document.getElementById("nam").value=="") || (document.getElementById("nam").value=="Enter your Name"))
	{
				
	document.getElementById("nam").value="Enter your Name";
	document.getElementById("nam").style.backgroundColor="#ffffff";
	document.getElementById("nam").style.borderColor="#000000";
    document.getElementById("nam").style.color="#464646";
	}
	else
	{
   document.getElementById("nam").style.backgroundColor="#838383";
	document.getElementById("nam").style.borderColor="#666666";
	document.getElementById("nam").style.color="#ffffff";
	}
	if( (document.getElementById("num").value=="") || (document.getElementById("num").value=="Enter your Number"))
	{
		document.getElementById("num").value="Enter your Number";
	document.getElementById("num").style.backgroundColor="#ffffff";
	document.getElementById("num").style.borderColor="#000000";
    document.getElementById("num").style.color="#464646";
		
	}
		else
	{
   document.getElementById("num").style.backgroundColor="#838383";
	document.getElementById("num").style.borderColor="#666666";
	document.getElementById("num").style.color="#ffffff";
	}
	
		
}



function txtfocus()
{
	
	if( (document.getElementById("nam").value!="") || (document.getElementById("nam").value!="Enter your Name"))
   {
	document.getElementById("nam").style.backgroundColor="#838383";
	document.getElementById("nam").style.borderColor="#505050";
	document.getElementById("nam").style.color="#ffffff";
	}

}

function txtpassfocus()
{
	
if( (document.getElementById("num").value!="") || (document.getElementById("num").value!="Enter your Number"))
{
	document.getElementById("num").style.backgroundColor="#838383";
	document.getElementById("num").style.borderColor="#505050";
	document.getElementById("num").style.color="#ffffff";
}

}

function txtpass()
{
	
	document.getElementById("num").style.backgroundColor="#EDEDED";
	document.getElementById("num").style.borderColor="#666666";
	//document.getElementById("num").style.color="#464646";
    if((document.getElementById("nam").value=="") || (document.getElementById("nam").value=="Enter your Name"))
	{
    document.getElementById("nam").value="Enter your Name";
	document.getElementById("nam").style.backgroundColor="#ffffff";
    document.getElementById("nam").style.color="#464646";
	}
	else
	{
	document.getElementById("nam").style.backgroundColor="#838383";
	document.getElementById("nam").style.borderColor="#666666";
	document.getElementById("nam").style.color="#ffffff";
	}
	if((document.getElementById("num").value=="") || (document.getElementById("num").value=="Enter your Number"))
	{
	document.getElementById("num").value="";
	}
	else
	{
	document.getElementById("num").style.backgroundColor="#838383";
	document.getElementById("num").style.borderColor="#666666";
	document.getElementById("num").style.color="#ffffff";
	}
}


/* Newsletter signup form validation*/

function txtborder1()
{
	
	
	document.getElementById("nname").style.backgroundColor="#EDEDED";
	document.getElementById("nname").style.borderColor="#666666";
	//document.getElementById("num").style.color="#464646";
	//alert(document.getElementById("nam").value);
	if((document.getElementById("nname").value=="") || (document.getElementById("nname").value=="ENTER YOUR NAME"))
	{
	document.getElementById("nname").value="";
	}
	else
	{
	document.getElementById("nname").style.backgroundColor="#838383";
	document.getElementById("nname").style.borderColor="#666666";
	document.getElementById("nname").style.color="#ffffff";
	}
}


function normalbg1()
{
	
	if( (document.getElementById("nname").value=="") || (document.getElementById("nname").value=="ENTER YOUR NAME"))
	{
				
	document.getElementById("nname").value="ENTER YOUR NAME";
	document.getElementById("nname").style.backgroundColor="#ffffff";
	document.getElementById("nname").style.borderColor="#000000";
    document.getElementById("nname").style.color="#464646";
	}
	else
	{
   document.getElementById("nname").style.backgroundColor="#838383";
	document.getElementById("nname").style.borderColor="#666666";
	document.getElementById("nname").style.color="#ffffff";
	}
	
		
}



function txtfocus1()
{
	
	if( (document.getElementById("nname").value!="") || (document.getElementById("nname").value!="ENTER YOUR NAME"))
   {
	document.getElementById("nname").style.backgroundColor="#838383";
	document.getElementById("nname").style.borderColor="#505050";
	document.getElementById("nname").style.color="#ffffff";
	}

}
function txtborder2()
{
	
	
	document.getElementById("nemailid").style.backgroundColor="#EDEDED";
	document.getElementById("nemailid").style.borderColor="#666666";
	//document.getElementById("num").style.color="#464646";
	//alert(document.getElementById("nam").value);
	if((document.getElementById("nemailid").value=="") || (document.getElementById("nemailid").value=="ENTER YOUR EMAIL ADDRESS"))
	{
	document.getElementById("nemailid").value="";
	}
	else
	{
	document.getElementById("nemailid").style.backgroundColor="#838383";
	document.getElementById("nemailid").style.borderColor="#666666";
	document.getElementById("nemailid").style.color="#ffffff";
	}
}


function normalbg2()
{
	
	if( (document.getElementById("nemailid").value=="") || (document.getElementById("nemailid").value=="ENTER YOUR EMAIL ADDRESS"))
	{
				
	document.getElementById("nemailid").value="ENTER YOUR EMAIL ADDRESS";
	document.getElementById("nemailid").style.backgroundColor="#ffffff";
	document.getElementById("nemailid").style.borderColor="#000000";
    document.getElementById("nemailid").style.color="#464646";
	}
	else
	{
   document.getElementById("nemailid").style.backgroundColor="#838383";
	document.getElementById("nemailid").style.borderColor="#666666";
	document.getElementById("nemailid").style.color="#ffffff";
	}
	
		
}



function txtfocus2()
{
	
	if( (document.getElementById("nemailid").value!="") || (document.getElementById("nemailid").value!="ENTER YOUR EMAIL ADDRESS"))
   {
	document.getElementById("nemailid").style.backgroundColor="#838383";
	document.getElementById("nemailid").style.borderColor="#505050";
	document.getElementById("nemailid").style.color="#ffffff";
	}

}




function hideWaitMessageAndShowCaption(imageIndex)
	{
		//alert(imageIndex)
		//document.getElementById('waitMessage').style.display='none';	
	}

//function hide(imgname)
//{
//document.getElementById(imgname).style.border="none";		
//}

function mousein(newid,tot)
{
	var browser = navigator.appName ;
	for (i=1;i<=tot;i++)
	{
		var imgid='img'+i;
		var txtid='txt'+i;
		if(newid==imgid)
		{
			if (browser == "Microsoft Internet Explorer")
			{
			  document.getElementById(imgid).filters.alpha.opacity=100;
			  document.getElementById(txtid).style.backgroundColor="Red";
			}
			else
			{
			  document.getElementById(imgid).style.opacity=1;
			  document.getElementById(txtid).style.backgroundColor="Red";
			}
		}
	}
}
function mouseout(newid,tot)
{
	var browser = navigator.appName ;
	for (i=1;i<=tot;i++)
	{
		var imgid='img'+i;
		var txtid='txt'+i;
		if(newid==imgid)
		{
			 if (browser == "Microsoft Internet Explorer")
				{
				  document.getElementById(imgid).filters.alpha.opacity=40;
				  document.getElementById(txtid).style.backgroundColor="#272727";
				}
				else
				{
				 document.getElementById(imgid).style.opacity=0.4;
				 document.getElementById(txtid).style.backgroundColor="#272727";
				}
		}
		}
}

function mousein_p(newid,tot)
{
	var browser = navigator.appName ;
	for (i=1;i<=tot;i++)
	{
		var imgid='pimg'+i;
		var txtid='ptxt'+i;
		if(newid==imgid)
		{
			if (browser == "Microsoft Internet Explorer")
			{
			  document.getElementById(imgid).filters.alpha.opacity=100;
			  document.getElementById(txtid).style.backgroundColor="Red";
			}
			else
			{
			  document.getElementById(imgid).style.opacity=1;
			  document.getElementById(txtid).style.backgroundColor="Red";
			}
		}
	}
}
function mouseout_p(newid,tot)
{
	var browser = navigator.appName ;
	for (i=1;i<=tot;i++)
	{
		var imgid='pimg'+i;
		var txtid='ptxt'+i;
		if(newid==imgid)
		{
			 if (browser == "Microsoft Internet Explorer")
				{
				  document.getElementById(imgid).filters.alpha.opacity=40;
				  document.getElementById(txtid).style.backgroundColor="#272727";
				}
				else
				{
				 document.getElementById(imgid).style.opacity=0.4;
				 document.getElementById(txtid).style.backgroundColor="#272727";
				}
		}
		}
}


















