function BookMarkThisPage(Title,URL){if(window.sidebar){window.sidebar.addPanel(Title,URL,"");}
else
if(document.all){window.external.AddFavorite(URL,Title);}}
function CheckKeyPressAndSubmit(evt){var keyCode_Number=0;var browser=navigator.appName.substring(0,9);if(browser=="Microsoft")
{keyCode_Number=evt.keyCode;}
else if(browser=="Netscape")
{keyCode_Number=evt.which;}
if(keyCode_Number==13)
{var ThisForm=document.forms[0];if(ThisForm.EmailAddress.value==""){alert("Please enter an Email address.");return false;}
else
{SubmitSubscribe();return;}}
else
{return;}}
function SubmitSubscribe(){var ctrl=null;var ThisForm=document.forms[0];ctrl=document.getElementById('EmailAddress');if(ctrl.value==""){alert("Please enter an Email address.");return false;}
ThisForm.action="/Subscription.asp";ThisForm.method="GET";ThisForm.__VIEWSTATE.value="";ThisForm.submit();}
function CheckKeyPressAndSubmit1(evt){var keyCode_Number=0;var browser=navigator.appName.substring(0,9);if(browser=="Microsoft")
{keyCode_Number=evt.keyCode;}
else if(browser=="Netscape")
{keyCode_Number=evt.which;}
if(keyCode_Number==13)
{var ThisForm=document.forms[0];if(ThisForm.SearchText.value=="")
{alert("Please enter a search string.");return false;}
else
{SubmitSearch();return;}}
else
{return;}}
function SubmitSearch(){var ctrl=null;var ThisForm=document.forms[0];ctrl=document.getElementById('SearchText');if(ctrl.value=="")
{alert("Please enter search string.");return false;}
ThisForm.action="/Search.asp";ThisForm.method="GET";ThisForm.__VIEWSTATE.value="";ThisForm.submit();}
function RedirectOnSelectChangedrpStore(text,value)
{document.URL="/Action/Action.aspx?CjSiteID="+value+"&CouponSiteName="+text;}
function RedirectOnSelectChangedrpCategory(text,value)
{document.URL="/Action/Action.aspx?CategoryID="+value+"&CategoryName="+text;}
function RedirectSubscription(text)
{document.URL="/Subscribe.aspx?EmailAddress="+text;}
function SearchBytext(text)
{document.URL="/Action/Action.aspx?searchtext="+text}
function subscribeByEmail(ctl,e)
{if(e.keyCode==13)
{if(ctl.value=='')
{alert('Enter an Email Address');ctl.focus();return false;}
else
{document.URL='/Subscribe.aspx?EmailAddress='+ctl.value;}}}
function Search(ctl,e)
{if(e.keyCode==13)
{if(ctl.value=='')
{alert('Enter Search Text');ctl.focus();return false;}
else
{document.URL="/Action/Action.aspx?searchtext="+ctl.value;}}}
function validateSearchText()
{var txt=document.getElementById("_ctl0_txtSearch");if(txt.value=="")
{alert("You must enter search text.");return false;}
else
{return true;}}
