if(window.attachEvent){window.attachEvent("onload",SetInputMode)}else{window.addEventListener("DOMContentLoaded",SetInputMode,false)}function ByZodiac(a){document.getElementById("ByDate"+a).style.visibility="hidden";document.getElementById("ByZodiac"+a).style.visibility="visible";if(a==1){document.getElementById(vInputMode1Id).value="zodiac"}else{document.getElementById(vInputMode2Id).value="zodiac"}}function ByDate(a){document.getElementById("ByDate"+a).style.visibility="visible";document.getElementById("ByZodiac"+a).style.visibility="hidden";if(a==1){document.getElementById(vInputMode1Id).value="date"}else{document.getElementById(vInputMode2Id).value="date"}}function SetInputMode(){if(document.getElementById(vInputMode1Id).value=="zodiac"){ByZodiac("1")}else{ByDate("1")}if(document.getElementById(vInputMode2Id).value=="zodiac"){ByZodiac("2")}else{ByDate("2")}}function ValidatePage(){var b=document.getElementById(vErrorMessageLabelId);var a="To calculate love compatibility score, you need to provide all details about both people.";var c=document.getElementById(vName1TextBoxId).value;var d=document.getElementById(vName2TextBoxId).value;if(c.length==0||d.length==0){b.innerHTML=a;return false}if(document.getElementById(vInputMode1Id).value=="zodiac"){if(document.getElementById(vZodiac1DropDownListId).selectedIndex==0){b.innerHTML=a;return false}}else{if(document.getElementById(vDay1DropDownListId).selectedIndex==0||document.getElementById(vMonth1DropDownListId).selectedIndex==0||document.getElementById(vYear1DropDownListId).selectedIndex==0){b.innerHTML=a;return false}}if(document.getElementById(vInputMode2Id).value=="zodiac"){if(document.getElementById(vZodiac2DropDownListId).selectedIndex==0){b.innerHTML=a;return false}}else{if(document.getElementById(vDay2DropDownListId).selectedIndex==0||document.getElementById(vMonth2DropDownListId).selectedIndex==0||document.getElementById(vYear2DropDownListId).selectedIndex==0){b.innerHTML=a;return false}}return true};
