// JavaScript Document
/////////////////	luck////////////////////////////////////////

	 function luck()
	 {
		if(document.nameForm.txtBxName.value=="")
	 			{
		 alert("Enter Your Name !");
		 document.nameForm.txtBxName.focus();
		 return false;
				 }	 		  
	}
	
	function luckvalide()
	  {
		  
		    			 if(document.luckfrm.pname.value=="")
								{
									 alert("Enter Name Your Name to Check Luck Or Not !");
									 document.luckfrm.pname.focus();
									 return false;
								 }
		  
					  if(document.luckfrm.date.selectedIndex=="")
							{
								 alert("Enter Date Of Birth !");
								 document.luckfrm.date.focus();
								 return false;
							 }	
					if(document.luckfrm.month.selectedIndex=="")
							{
								 alert("Enter Date Of Birth !");
								 document.luckfrm.month.focus();
								 return false;
							 }	
					if(document.luckfrm.birthyear.selectedIndex=="")
							{
								 alert("Enter Date Of Birth !");
								 document.luckfrm.birthyear.focus();
								 return false;
							 }			 
						if(document.luckfrm.pob.value=="")
								{
									 alert("Enter Your Birth Place !");
									 document.luckfrm.pob.focus();
									 return false;
								 }	
						if(document.luckfrm.time1.value=="")
								{
									 alert("Enter Your Birth Time !");
									 document.luckfrm.time1.focus();
									 return false;
								 }
								 
					if(document.luckfrm.time2.selectedIndex=="")
							{
								 alert("Enter Birth Time !");
								 document.luckfrm.time2.focus();
								 return false;
							 }			 
				    	
						 if(document.luckfrm.cname.value=="")
								{
									 alert("Enter Name commonly used !");
									 document.luckfrm.cname.focus();
									 return false;
								 }			 
					if(document.luckfrm.email.value=="")
							{
								 alert("Enter Your Email !");
								 document.luckfrm.email.focus();
								 return false;
							 }	
						else
						{
									 var str = new String(document.luckfrm.email.value);
									 var isOK = true;
									 rExp = /[!\"£$%\^&*()-+=<>,\'#?\\|¬`\/\[\]]/
									  if( rExp.test(str) )
									   isOK = false;
									  if( str.indexOf('.') == -1 || str.indexOf('@') == -1 )
									   isOK = false;
									  if( str.slice(str.lastIndexOf('.')+1,str.length).length < 2 )
										isOK = false;
									  if( str.slice(0,str.indexOf('@')).length < 1 )
										isOK = false;
									  if( str.slice(str.indexOf('@')+1,str.lastIndexOf('.')).length < 1 )
										isOK = false;
											  if( !isOK )
											  {
												alert( "Invalid email address" );
												document.luckfrm.email.value='';
												document.luckfrm.email.focus();
												return false;
											  }
						}
				 
				  if(document.luckfrm.codephno.value=="")
								{
									 alert("Please Enter Your Area Code !");
									 document.luckfrm.codephno.focus();
									 return false;
								 }
								 
					if(isNaN(document.luckfrm.codephno.value))
					  {
						  	alert("Please Enter Your Valid  Area Code !");
							document.luckfrm.codephno.focus();
							document.luckfrm.codephno.value='';
							return false;
					  }
					  
				  if(document.luckfrm.phno.value=="")
								{
									 alert("Please Enter Your Contact Number !");
									 document.luckfrm.phno.focus();
									 return false;
								 }
								 
					if(isNaN(document.luckfrm.phno.value))
					  {
						  	alert("Please Enter Your Valid  Contact Number !");
							document.luckfrm.phno.focus();
							document.luckfrm.phno.value='';
							return false;
					  }
					 
					  
				 
				 
					
		  }
		  
		  



function Full (frm1)
{

	//*********blank field******************************************
	// check to see if the field is blank
	
	if((frm1.fname.value=="")||(frm1.fname.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid First name.");
			frm1.fname.focus();
			return(false);
			}
//***************drop down*********
	
// check if no drop down has been selected for date
	
	if (frm1.date.selectedIndex == 0)
	{
	alert("Please select one of the \"Date \" options.");
	frm1.date.focus();
	return (false);
	}
	// check if no drop down has been selected for month
	if (frm1.month.selectedIndex == 0)
	{
	alert("Please select one of the \"Month \" options.");
	frm1.month.focus();
	return (false);
	}
	
	// check if no drop down has been selected for year
	if (frm1.birthyear.selectedIndex == 0)
	{
	alert("Please select one of the \"year \" options.");
	frm1.birthyear.focus();
	return (false);
	}
	
//*********** VALIDATION  Time ********************

if (frm1.time1.value=="")
			{
			alert("You must enter time.");
			frm1.time1.focus();
			return(false);
			}
	if (frm1.time2.selectedIndex == 0)
	{
	alert("Please select one of the am or pm  options.");
	frm1.time2.focus();
	return (false);
	}
//***************city*********		
	if((frm1.city.value=="")||(frm1.city.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid city.");
			frm1.city.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
//***************state*********
	if((frm1.state.value=="")||(frm1.state.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid state.");
			frm1.state.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
//***************country*********
	// check if no drop down has been selected for country
		
	if (frm1.country.selectedIndex == 0)
		{
			alert("Please select one of the Country.");
			frm1.country.focus();
			return(false);
		}
	
	//*********Validation for Female ******************************************
	// check to see if the field is blank
	
	if((frm1.fnamef.value=="")||(frm1.fnamef.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid First name.");
			frm1.fnamef.focus();
			return(false);
			}
//***************drop down*********
	
// check if no drop down has been selected for date
	
	if (frm1.datef.selectedIndex == 0)
	{
	alert("Please select one of the \"Date \" options.");
	frm1.datef.focus();
	return (false);
	}
	// check if no drop down has been selected for month
	if (frm1.monthf.selectedIndex == 0)
	{
	alert("Please select one of the \"Month \" options.");
	frm1.monthf.focus();
	return (false);
	}
	
	// check if no drop down has been selected for year
	if (frm1.birthyearf.selectedIndex == 0)
	{
	alert("Please select one of the \"year \" options.");
	frm1.birthyearf.focus();
	return (false);
	}
	
//*********** VALIDATION  Time ********************

if (frm1.time1f.value=="")
			{
			alert("You must enter time.");
			frm1.time1f.focus();
			return(false);
			}
	if (frm1.time2f.selectedIndex == 0)
	{
	alert("Please select one of the am or pm  options.");
	frm1.time2f.focus();
	return (false);
	}
//***************city*********		
	if((frm1.cityf.value=="")||(frm1.cityf.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid city.");
			frm1.cityf.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
	
	
		
//***************state*********
	if((frm1.statef.value=="")||(frm1.statef.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid state.");
			frm1.statef.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
//***************country*********
	// check if no drop down has been selected for country
		
	if (frm1.countryf.selectedIndex == 0)
		{
			alert("Please select one of the Country.");
			frm1.countryf.focus();
			return(false);
		}
	
//***************phone*********
		if (frm1.officenof.value =="")
		
		{	
		alert("Please enter your valid phone no.");
		frm1.officenof.focus();
		return(false);
	   }


	if (frm1.officenof.value !="")
	{
	if (isNaN(frm1.officenof.value))
		{	
		alert("Invalid Phone number ! Please enter your valid phone no.");
		frm1.officenof.focus();
		return(false);
	   }

	}
			  
//***************mobile*********			
	if (frm1.mobilenof.value =="")
	{	
		alert("Please enter your valid mobileno.");
		frm1.mobilenof.focus();
		return(false);
	   }
	if (frm1.mobilenof.value !="")
	{
	if (isNaN(frm1.mobilenof.value))
		{	
		alert("Invalid mobileno content ! Please enter your valid mobileno.");
		frm1.mobilenof.focus();
		return(false);
	   }
	}  
 	//****************email validation**************
	// check if email field is blank
		if (frm1.emailf.value == "")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm1.emailf.focus();
			return(false);
			}

// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm1.emailf.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm1.emailf.focus();
					return(false);
				}  
//***************Emailing person *********
		if (frm1.namee.value =="")
		
		{	
		alert("Please enter your name.");
		frm1.namee.focus();
		return(false);
	   }

	if (frm1.addresse.value =="")
		
		{	
		alert("Please enter your address.");
		frm1.addresse.focus();
		return(false);
	   }	   
			  
//***************address*********			
 	//****************email validation**************
	// check if email field is blank
		if (frm1.email.value == "")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm1.email.focus();
			return(false);
			}

// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm1.email.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm1.email.focus();
					return(false);
				}    
}




function Full1 (frm1)
{

	//*********blank field******************************************
	// check to see if the field is blank
	
	if((frm1.fname.value=="")||(frm1.fname.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid First name.");
			frm1.fname.focus();
			return(false);
			}
				
// check if no drop down has been selected for sex
	
	if (frm1.sex.selectedIndex == 0)
	{
	alert("Please select one of the Gender options.");
	frm1.sex.focus();
	return (false);
	}



	//***************drop down*********
	
// check if no drop down has been selected for date
	
	if (frm1.date.selectedIndex == 0)
	{
	alert("Please select one of the \"Date \" options.");
	frm1.date.focus();
	return (false);
	}
	// check if no drop down has been selected for month
	if (frm1.month.selectedIndex == 0)
	{
	alert("Please select one of the \"Month \" options.");
	frm1.month.focus();
	return (false);
	}
	
	// check if no drop down has been selected for year
	if (frm1.birthyear.selectedIndex == 0)
	{
	alert("Please select one of the \"year \" options.");
	frm1.birthyear.focus();
	return (false);
	}
	
//*********** VALIDATION  Time ********************

if (frm1.time1.value=="")
			{
			alert("You must enter time.");
			frm1.time1.focus();
			return(false);
			}
	if (frm1.time2.selectedIndex == 0)
	{
	alert("Please select one of the am or pm  options.");
	frm1.time2.focus();
	return (false);
	}
	

	


//***************city*********		
	if((frm1.city.value=="")||(frm1.city.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid city.");
			frm1.city.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
	
	
		
//***************state*********
	if((frm1.state.value=="")||(frm1.state.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid state.");
			frm1.state.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com

	
	
	
//***************country*********
	// check if no drop down has been selected for country
		
	if (frm1.country.selectedIndex == 0)
		{
			alert("Please select one of the Country.");
			frm1.country.focus();
			return(false);
		}
	
//***************phone*********
		if (frm1.officeno.value =="")
		
		{	
		alert("Please enter your valid phone no.");
		frm1.officeno.focus();
		return(false);
	   }


	if (frm1.officeno.value !="")
	{
	if (isNaN(frm1.officeno.value))
		{	
		alert("Invalid Phone number ! Please enter your valid phone no.");
		frm1.officeno.focus();
		return(false);
	   }

	}
		   
			  
//***************mobile*********			
//	if (frm1.mobileno.value =="")
//	{	
//		alert("Please enter your valid mobileno.");
//		frm1.mobileno.focus();
//		return(false);
//	   }
//	if (frm1.mobileno.value !="")
//	{
//	if (isNaN(frm1.mobileno.value))
//		{	
//		alert("Invalid mobileno content ! Please enter your valid mobileno.");
//		frm1.mobileno.focus();
//		return(false);
//	   }
//	}  
 	//****************email validation**************
	// check if email field is blank
		if (frm1.email.value == "")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm1.email.focus();
			return(false);
			}

// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm1.email.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm1.email.focus();
					return(false);
				}    
	
}






function Full2(frm1)
{

	//*********blank field******************************************
	// check to see if the field is blank
	
	if((frm1.fname.value=="")||(frm1.fname.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid First name.");
			frm1.fname.focus();
			return(false);
			}
			
	
	// check if no drop down has been selected for sex
	
	if (frm1.sex.selectedIndex == 0)
	{
	alert("Please select one of the Gender options.");
	frm1.sex.focus();
	return (false);
	}



	//***************drop down*********
	
// check if no drop down has been selected for date
	
	if (frm1.date.selectedIndex == 0)
	{
	alert("Please select one of the \"Date \" options.");
	frm1.date.focus();
	return (false);
	}
	// check if no drop down has been selected for month
	if (frm1.month.selectedIndex == 0)
	{
	alert("Please select one of the \"Month \" options.");
	frm1.month.focus();
	return (false);
	}
	
	// check if no drop down has been selected for year
	if (frm1.birthyear.selectedIndex == 0)
	{
	alert("Please select one of the \"year \" options.");
	frm1.birthyear.focus();
	return (false);
	}
	
//*********** VALIDATION  Time ********************

if (frm1.time1.value=="")
			{
			alert("You must enter time.");
			frm1.time1.focus();
			return(false);
			}
	if (frm1.time2.selectedIndex == 0)
	{
	alert("Please select one of the am or pm  options.");
	frm1.time2.focus();
	return (false);
	}
	

	


//***************city*********		
	if((frm1.city.value=="")||(frm1.city.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid city.");
			frm1.city.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com
	
	
		
//***************state*********
	if((frm1.state.value=="")||(frm1.state.value.indexOf('@',0) !=-1))		
		{
			alert("You must enter a valid state.");
			frm1.state.focus();
			return(false);
			}
			// test if valid name, must not have @ and .com

	
	
	
//***************country*********
	// check if no drop down has been selected for country
		
	if (frm1.country.selectedIndex == 0)
		{
			alert("Please select one of the Country.");
			frm1.country.focus();
			return(false);
		}
	
//***************phone*********
		if (frm1.officeno.value =="")
		
		{	
		alert("Please enter your valid phone no.");
		frm1.officeno.focus();
		return(false);
	   }


	if (frm1.officeno.value !="")
	{
	if (isNaN(frm1.officeno.value))
		{	
		alert("Invalid Phone number ! Please enter your valid phone no.");
		frm1.officeno.focus();
		return(false);
	   }

	}
		   
			  
 	//****************email validation**************
	// check if email field is blank
		if (frm1.email.value == "")
			{
			alert("Please enter a value for the \"Email\" field.");
			frm1.email.focus();
			return(false);
			}

// test if valid email address, must have @ and .
	
	var checkEmail = "@.";
	var checkStr = frm1.email.value;
	var EmailValid = false;0000000000
	var EmailAt = false;
	var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
			ch = checkStr.charAt(i);
				for (j = 0;  j < checkEmail.length;  j++)
				{
					if (ch == checkEmail.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == checkEmail.charAt(j) && ch == ".")
						EmailPeriod = true;
		  			if (EmailAt && EmailPeriod)
				break;
      	  		if (j == checkEmail.length)
				break;
			}

				// if both the @ and . were in the string
				if (EmailAt && EmailPeriod)
				{
					EmailValid = true
					break;
				}
		}
			
			if (!EmailValid)
				{
					alert("Invalid email ID ! Please enter your valid email ID.");
					frm1.email.focus();
					return(false);
				}    
	
}





function check_reg()
{
with(document.registration_frm)
		  {
					if(u_name.value=="")
					{
					alert("Enter Username !");
					u_name.focus();
					return false;
					}
						if(password.value=="")
						{
						alert("Enter Password !");
						password.focus();
						return false;
						}
						if(c_password.value=="")
						{
						alert("Enter Confirm Password !");
						c_password.focus();
						return false;
						}
				if(password.value!=c_password.value){
				alert("Password and Confirm password doesn't match! Try again");
				password.value="";
				c_password.value="";
				password.focus();
				return false;
				}
				if(name.value=="")
				{
				alert("Enter Name!");
				name.focus();
				return false;
				}
					if(email.value=="")
					{
					alert("Enter Email Id!");
					email.focus();
					return false;
					}
					if(address.value=="")
					{
					alert("Enter Address!");
					address.focus();
					return false;
					}
						if(city.value=="")
						{
						alert("Enter City!");
						city.focus();
						return false;
						}
						if(state.value=="")
						{
						alert("Enter State!");
						state.focus();
						return false;
						}
								if(country.selectedIndex=='0')
								  {
								  alert("Select Country!");
								  country.focus();
								  return false;
								  }
								if(zipcode.value=="")
								{
								alert("Enter Zipcode!");
								zipcode.focus();
								return false;
								}
						if(contactno.value=="")
						{
						alert("Enter Contact No!");
						contactno.focus();
						return false;
						}
						if(txtCaptcha.value=="")
						{
						alert("Enter Security Code!");
						txtCaptcha.focus();
						return false;
						}
		
		  }
  }
//VALIDATION FOR CONTACT NO START//
function isInteger(s)
{
with(document.registration_frm){
      var i;
	s = s.toString();
      for (i = 0; i < s.length; i++)
      {
         var c = s.charAt(i);
         if (isNaN(c)) 
	   {
		alert("Invalid Contact No !");
		contactno.value="";
		contactno.focus();
     	return false;
	   }
      }
      return true;
     }
	 }

//VALIDATION FOR CONTACT NO END//



//VALIDATION FOR ZIP NO START//
function isInteger1(s)
    {
	with(document.registration_frm){
      var i;
	  s = s.toString();
      for (i = 0; i < s.length; i++)
      {
         var c = s.charAt(i);
         if (isNaN(c)) 
	   {
		alert("Invalid Zipcode !");
		zipcode.value="";
		zipcode.focus();
		return false;
	   }
      }
      return true;
      }
	  }
	  //VALIDATION FOR NO END//
	  
	  
	  function puja_check()
	    {
			
			  with(document.pujafrm)
		 			 {
			 				if(puja.selectedIndex=='0')
								  {
								  alert("Select Puja!");
								  puja.focus();
								  return false;
								  }
							if(name.value=="")
								{
								alert("Enter Your Name!");
								name.focus();
								return false;
								}	
							if(time1.value=="")
								{
								alert("Enter Birth Time!");
								time1.focus();
								return false;
								}	
							if(state.value=="")
								{
								alert("Enter Birth State!");
								state.focus();
								return false;
								}	
							if(city.value=="")
								{
								alert("Enter Birth City!");
								city.focus();
								return false;
								}	
							//****************email validation**************
						// check if email field is blank
							if (email.value == "")
								{
								alert("Please enter a value for the \"Email\" field.");
								email.focus();
								return(false);
								}

							// test if valid email address, must have @ and .
								
								var checkEmail = "@.";
								var checkStr = email.value;
								var EmailValid = false;0000000000
								var EmailAt = false;
								var EmailPeriod = false;
									for (i = 0;  i < checkStr.length;  i++)
									{
										ch = checkStr.charAt(i);
											for (j = 0;  j < checkEmail.length;  j++)
											{
												if (ch == checkEmail.charAt(j) && ch == "@")
													EmailAt = true;
												if (ch == checkEmail.charAt(j) && ch == ".")
													EmailPeriod = true;
												if (EmailAt && EmailPeriod)
											break;
											if (j == checkEmail.length)
											break;
										}
							
											// if both the @ and . were in the string
											if (EmailAt && EmailPeriod)
											{
												EmailValid = true
												break;
											}
									}
			
							if (!EmailValid)
								{
									alert("Invalid email ID ! Please enter your valid email ID.");
									email.focus();
									return(false);
								}    
					if(address.value=="")
								{
								alert("Enter Address!");
								address.focus();
								return false;
								}	
						if(code.value=="")
								{
								alert("Enter Security Code !");
								code.focus();
								return false;
								}			
					}
			
			}
	  
	  
	  function openwin(pg)
					{
	window.open("feedback/index.php","feedback","width=540,height=530,status=no,toolbar=no,menubar=no");
						}
						
						
						
						function openwin2(pg)
					{
	window.open("numerology_luck.php","feedback","width=540,height=530,status=no,toolbar=no,menubar=no");
						}
						
						
						
						
						
						function toggle(div_id) {
	var el = document.getElementById(div_id);
	if ( el.style.display == 'none' ) {	el.style.display = 'block';}
	else {el.style.display = 'none';}
}
function blanket_size(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportheight = window.innerHeight;
	} else {
		viewportheight = document.documentElement.clientHeight;
	}
	if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
		blanket_height = viewportheight;
	} else {
		if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
			blanket_height = document.body.parentNode.clientHeight;
		} else {
			blanket_height = document.body.parentNode.scrollHeight;
		}
	}
	var blanket = document.getElementById('blanket');
	blanket.style.height = blanket_height + 'px';
	var popUpDiv = document.getElementById(popUpDivVar);
	popUpDiv_height=blanket_height/2-150;//150 is half popup's height
	popUpDiv.style.top = popUpDiv_height + 'px';
}
function window_pos(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportwidth = window.innerHeight;
	} else {
		viewportwidth = document.documentElement.clientHeight;
	}
	if ((viewportwidth > document.body.parentNode.scrollWidth) && (viewportwidth > document.body.parentNode.clientWidth)) {
		window_width = viewportwidth;
	} else {
		if (document.body.parentNode.clientWidth > document.body.parentNode.scrollWidth) {
			window_width = document.body.parentNode.clientWidth;
		} else {
			window_width = document.body.parentNode.scrollWidth;
		}
	}
	var popUpDiv = document.getElementById(popUpDivVar);
	window_width=window_width/2-150;//150 is half popup's width
	popUpDiv.style.left = window_width + 'px';
}
function popup(windowname) {
	blanket_size(windowname);
	window_pos(windowname);
	toggle('blanket');
	toggle(windowname);		
}



<!--

//*****************************************
// Blending Image Slide Show Script- 
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=3000

//specify images
var slideimages=new Array("images/parad.gif","images/pendent.gif","images/nepal.gif","images/crystal2.gif","images/mala.gif","images/rudra.gif","images/sankh.gif","images/shaligram.gif","images/yantra.gif")

/*//specify corresponding links
var slidelinks=new Array("astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php","astro-mart.php")
*/
var newwindow=1 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->


