//function to display tarot card value onChange
function showcardvalue(){
	indexValue = document.frm_tarot_card.choosedeck.selectedIndex;
//	selectValue =document.frmtarotCard.choosedeck[indexValue].text;
//	alert (selectValue);
	var titleValue = new Array();
	titleValue[0] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Please Choose the Deck</b>";
	titleValue[1] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Tetraktys Spread</b>The Tetraktys spread is based upon Platonist thought and Pythagorean mathematics. The ten card spread gives a snapshot of the querent's overall state by exploring everything from the most basic physical elements to the spiritual self.";
	titleValue[2] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Cross and Triangle Spread</b>This is a query spread used to explore questions concerning the overall direction of the querent's life. To use this spread concentrate on a question to put before the cards and then click below.";
	titleValue[3] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Celtic Spread</b>The Celtic Cross spread is probably the most popular spread in use today. It is intended to shed light on many aspects of the querent's life. To use this spread, concentrate on a question to put before the cards and then click below.";
	titleValue[4] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Astrological Spread</b>In this spread each card is read as an entity onto itself. Individual cards represent each astrological house and should be interpreted with the strengths and weaknesses of the corresponding house in mind. You need not ask a question.";
	titleValue[5] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Relationship Spread</b>This spread is used by querents to explore their relationships with others by exploring the needs and views of both parties. Think of your relationship with a specific person and click below.";
	titleValue[6] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Planetary Spread</b>This is a query spread that may yield insight into a number of different aspects of your life's current state. To use this spread concentrate on a question to put before the cards and then click below.";
	titleValue[7] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Birthday Spread</b>The birthday spread is used to help plot a course toward achieving goals you would like to realize before your next birthday. Think of what you would like to accomplish before your next birthday and click below.";
	titleValue[8] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Mandala Spread</b>This spread is used to explore the spiritual side of the user. You may pose a question to the cards using this spread, or may explore your overall spiritual self without making a specific inquiry. Click below to use this spread.";
	titleValue[9] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Star Guide Spread</b>This spread is often used to explore a very specific question. To use this spread concentrate on a question to put before the cards and then click below.";
	titleValue[10] = "<b style='font: bold 15px verdana; color:#FF6600; padding: 15px 0 10px 0; display: block'>Tree of Life Spread</b>The Tree of Life spread is a very thorough method of exploring the general path of the querent's life. To use this spread concentrate on a question to put before the cards and then click below.";
	document.getElementById('cardTitle').innerHTML = titleValue[indexValue];
}

//show hide function
function showhide (id,totval,idname) {
//	alert ("Show ID name : "+id+" Total numbers of div : "+totval+" ID initial :"+idname)
	var d = document.getElementById(id);
		for (var i=1; i<=totval; i++) {
			if (document.getElementById(idname+i)) {
				document.getElementById(idname+i).style.display='none';
			}
	}
	if (d) {
			d.style.display='block';
	}
}

function showhide_img (id) {
	var d = document.getElementById(id);
		for (var i=1; i<=4; i++) {
			if (document.getElementById('horo-tab0'+i)) {
				document.getElementById('horo-tab0'+i).style.display='none';
				document.getElementById('horo-tab0'+i+'-img').src="images/horo-tab0"+i+"-off.gif";
			}
		}
	if (d) {
			document.getElementById(d.id+'-img').src="images/"+d.id+"-on.gif";
			d.style.display='block';
		}
}

//show hide sun sign prediction function
function sun_prediction (imgfolder) 
{
	var id = document.sunsign.selsunsign[document.sunsign.selsunsign.selectedIndex].value;
	var signvalue = document.sunsign.selsunsign[document.sunsign.selsunsign.selectedIndex].text;
//	alert (id);
	for (var i=1; i<=12; i++) 
	{
		if (document.getElementById('sunsign'+i)) 
		{
			document.getElementById('sunsign'+i).style.display='none';
		}
	}
	if (id) 
	{
		document.getElementById(id).style.display='block';
		document.getElementById('sun-sign-name').innerHTML = signvalue;
		document.getElementById('sun_sign_img').src = "images/horoscope/sun-sign/"+imgfolder+"/"+signvalue+".gif";
	}
}

//show hide moon sign prediction function
function moon_prediction (imgfolder) {
	var id = document.moonsign.selmoonsign[document.moonsign.selmoonsign.selectedIndex].value;
//	alert (id);
	var signvalue = document.moonsign.selmoonsign[document.moonsign.selmoonsign.selectedIndex].text;
//	alert (id);
	for (var i=1; i<=12; i++) {
		if (document.getElementById('monsign'+i)) {
			document.getElementById('monsign'+i).style.display='none';
		}
	}
	if (id) {
		document.getElementById(id).style.display='block';
		document.getElementById('moon-sign-name').innerHTML = signvalue;
		document.getElementById('moon_sign_img').src = "images/horoscope/moon-sign/"+imgfolder+"/"+signvalue+".gif";
	}
}

//show hide moon sign hindi prediction function
function hindi_moon_prediction(imgfolder,imgurl) {
	var id = document.moonsign.selmoonsign[document.moonsign.selmoonsign.selectedIndex].value;
	var signvalue = document.moonsign.selmoonsign[document.moonsign.selmoonsign.selectedIndex].text; //print the moon sign name
	var signimg = document.moonsign.selmoonsign[document.moonsign.selmoonsign.selectedIndex].id; //print the moon sign image
	for (var i=1; i<=12; i++) {
		if (document.getElementById('monsign'+i)) {
			document.getElementById('monsign'+i).style.display='none';
		}
	}
	if (id) {
		document.getElementById(id).style.display='block';
		document.getElementById('moon-sign-name').innerHTML = signvalue;
		document.getElementById('moon_sign_img').src = imgurl+"/images/horoscope/moon-sign/"+imgfolder+"/"+signimg+".gif";
	}
}

function num_prediction (imgfolder) {
	var id = document.numsign.selnumsign[document.numsign.selnumsign.selectedIndex].value;
	var signvalue = document.numsign.selnumsign[document.numsign.selnumsign.selectedIndex].text
//	alert (id);
	for (var i=1; i<=9; i++) {
		if (document.getElementById('numsign'+i)) {
			document.getElementById('numsign'+i).style.display='none';
		}
	}
	if (id) {
		document.getElementById(id).style.display='block';
		document.getElementById('num-sign-name').innerHTML = signvalue;
		document.getElementById('num_sign_img').src = "images/horoscope/num-sign/"+imgfolder+"/"+signvalue+".gif";
	}
}

function chi_prediction (imgfolder) {
	var id = document.chisign.selchisign[document.chisign.selchisign.selectedIndex].value;
	var signvalue = document.chisign.selchisign[document.chisign.selchisign.selectedIndex].text
//	alert (id);
	for (var i=1; i<=12; i++) {
		if (document.getElementById('chisign'+i)) {
			document.getElementById('chisign'+i).style.display='none';
		}
	}
	if (id) {
		document.getElementById(id).style.display='block';
		document.getElementById('chi-sign-name').innerHTML = signvalue;
		document.getElementById('chi_sign_img').src = "images/horoscope/chi-sign/"+imgfolder+"/"+signvalue+".gif";
	}
}

function reset_field(field_name, val) {
	if(val == field_name.value) {
		field_name.value = "";
	}
	else if("" == field_name.value) {
		field_name.value = val;
	}
	return true;
}

//script for makaan popup tab starts here

function showhide_template (id,img_url) {
	var d = document.getElementById(id);
		for (var i=1; i<=3; i++) {
			if (document.getElementById('reporttab0'+i)) {
				document.getElementById('reporttab0'+i).style.display='none';
				document.getElementById('reporttab0'+i+'img').src=img_url+"/images/product-lp/reporttab0"+i+"-off.gif";
			}
		}
	if (d) {
			document.getElementById(d.id+'img').src=img_url+"/images/product-lp/"+d.id+"-on.gif";
			d.style.display='block';
		}
}

//show hide sun sign prediction function
function couple_prediction () 
{
	var id = document.couplesign.selcouplesign[document.couplesign.selcouplesign.selectedIndex].value;
	var signvalue = document.couplesign.selcouplesign[document.couplesign.selcouplesign.selectedIndex].text;
//	alert (id);
	for (var i=1; i<=12; i++) 
	{
		if (document.getElementById('couplesign'+i)) 
		{
			document.getElementById('couplesign'+i).style.display='none';
		}
	}
	if (id) 
	{
		document.getElementById(id).style.display='block';
		document.getElementById('couple-sign-name').innerHTML = signvalue;
	}
}