function LoveMatchRedirect() { 

	var strUrl=""

	
	var strPzodiac=window.document.forms["formLoveMatch"].LmPZodiac.options[window.document.forms["formLoveMatch"].LmPZodiac.selectedIndex].value

    strUrl=strUrl + strPzodiac.substring(0,3)         // Adding first 3 chars of persons zodiac name

	var strLzodiac=window.document.forms["formLoveMatch"].LmLZodiac.options[window.document.forms["formLoveMatch"].LmLZodiac.selectedIndex].value

    strUrl=strUrl + strLzodiac.substring(0,3)         // Adding first 3 chars of lovers zodiac name

	strUrl=strUrl + ".htm"

	if (strPzodiac != strLzodiac) {  //If the Zodiac Signs are same, no need to consider sex

			if (window.document.formLoveMatch.LmSex[0].checked == true) {

			 strUrl="m" + strUrl 		}  //male

			else {

			 strUrl="f" + strUrl 	} }		// female 


	strUrl="western-astrology/lovematch/" + strUrl


	window.open(strUrl,"","toolbar=no,directories=no,resize=no,menubar=no,location=no,scrollbars=yes,width=626,height=400, maximize=null");
return true;
}
function setSubmitionDate()

{

       var todayDate,thisday,thismonth,thisyear,strPassDate,thisdate

       var thishour,thisminute,thissecond

	todayDate=new Date()

	thisday=(todayDate.getDay()+1)

	thismonth=(todayDate.getMonth()+1)

	 if (thismonth<10)

	 {

          thismonth="0"+thismonth

         }

	 thisdate=todayDate.getDate()

	 if (thisdate<10)

	 {

          thisdate="0"+thisdate

         }

	thisyear=todayDate.getYear()

        if(thisyear<1000){

        	thisyear+=1900

        }

	strPassDate = thisyear.toString()+thismonth.toString()+thisdate.toString()+thisday.toString()



	thishour = todayDate.getHours()

	thisminute = todayDate.getMinutes()

	thissecond = todayDate.getSeconds()

	
 return (strPassDate);
}

function submitFromIndian(){	
if (window.document.formForecastIndian.zodiac.value!=0)
{


window.document.formForecastIndian.SubmissionDate.value= setSubmitionDate();


if (window.document.formForecastIndian.forecastscope[0].checked)

     fscope=window.document.formForecastIndian.forecastscope[0].value

else

     fscope=window.document.formForecastIndian.forecastscope[1].value

data=window.document.formForecastIndian.ForecastStyle.value+","+

window.document.formForecastIndian.zodiac.value+","+

window.document.formForecastIndian.SubmissionDate.value+","+

 fscope


window.document.formForecastIndian.forecastscope[0].focus()
window.open("common/daily-weekly-prediction.php?data="+data);
}
else
	{
	alert("Select your birth sign")
		return;
	}
}

function submitFromWestern(){	
	if (window.document.formForecastWestern.zodiac.value!=0)
	{


	window.document.formForecastWestern.SubmissionDate.value=setSubmitionDate();

if (window.document.formForecastWestern.forecastscope[0].checked)

     fscope=window.document.formForecastWestern.forecastscope[0].value

else

     fscope=window.document.formForecastWestern.forecastscope[1].value

data=window.document.formForecastWestern.ForecastStyle.value+","+

window.document.formForecastWestern.zodiac.value+","+

window.document.formForecastWestern.SubmissionDate.value+","+

 fscope


window.document.formForecastWestern.forecastscope[0].focus()
window.open("common/daily-weekly-prediction.php?data="+data);

	}
	else
	{
	alert("Select your birth sign")
		return;
	}
}


function submitFromImageIndian(ImageNumber){

 window.document.formForecastIndian.SubmissionDate.value=setSubmitionDate();
 window.document.formForecastIndian.Zodiac.value=ImageNumber.toString()
 window.document.formForecastIndian.action="http://202.146.195.130/script/nasAVForecast.exe";
 document.formForecastIndian.submit();
}








function GetStarName(strVal,fstyle)
{
	if (fstyle =="Western")
	{
		switch(strVal)
						{
							case '01':
											return 'Aries';
											break;
							case '02':
											return 'Taurus';
											break;
							case '03':
											return 'Gemini';
											break;
							case '04':
											return 'Cancer';
											break;
							case '05':
											return 'Leo';
											break;
							case '06':
											return 'Virgo';
											break;
							case '07':
											return 'Libra';
											break;
							case '08':
											return 'Scorpio';
											break;
							case '09':
											return 'Sagittarius';
											break;
							case '10':
											return 'Capricon';
											break;
							case '11':
											return 'Aquarius';
											break;
							case '12':
											return 'Pisces';
											break;
						}
		}
		else if(fstyle =="Indian")
			{
				switch(strVal)
				{
					case '01':
									return 'Mesha';
									break;
					case '02':
									return 'Vrishabha';
									break;
					case '03':
									return 'Mithuna';
									break;
					case '04':
									return 'Karkata';
									break;
					case '05':
									return 'Simha';
									break;
					case '06':
									return 'Kanya';
									break;
					case '07':
									return 'Thula';
									break;
					case '08':
									return 'Vrischika';
									break;
					case '09':
									return 'Dhanu';
									break;
					case '10':
									return 'Makara';
									break;
					case '11':
									return 'Kumbha';
									break;
					case '12':
									return 'Meena';
									break;
				}//switch	
			}	//if		
	} //fun