﻿function zxcByClassName(a,b,c){if(typeof b=="string")b=document.getElementById(b);b=b||document;for(var c=c||"*",d=new RegExp("\\b"+a+"\\b"),e=b.getElementsByTagName(c),f=[],g=0;g<e.length;g++){if(d.test(e[g].className))f.push(e[g])}return f}function checkajax(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function fetchCStimediv(){if(cstime.readyState==4){document.getElementById("cstimediv").style.display="";document.getElementById("cstimediv").innerHTML=cstime.responseText}}function showcstimediv(){cstime=checkajax();if(cstime==null){alert("Your browser does not support AJAX!");return}var a;a="../store/cstime.aspx";cstime.onreadystatechange=fetchCStimediv;cstime.open("GET",a,true);cstime.send(null)}function cstimedivhide(){document.getElementById("cstimediv").style.display="none"}function cstimedivshow(){document.getElementById("cstimediv").style.display=""}function zxcPos(a){var b=[0,0];while(a){b[0]+=a.offsetLeft;b[1]+=a.offsetTop;a=a.offsetParent}return b}function zxcWWHS(){if(window.innerHeight)return[window.innerWidth-10,window.innerHeight-10,window.pageXOffset,window.pageYOffset];else if(document.documentElement.clientHeight)return[document.documentElement.clientWidth-10,document.documentElement.clientHeight-10,document.documentElement.scrollLeft,document.documentElement.scrollTop];return[document.body.clientWidth,document.body.clientHeight,document.body.scrollLeft,document.body.scrollTop]}function zxcOpacity(a,b){if(b<0||b>100)return;a.style.filter="alpha(opacity="+b+")";a.style.opacity=a.style.MozOpacity=a.style.KhtmlOpacity=b/100-.001}function CkTop(){for(var a=0;a<Imgs.length;a++){if(zxcPos(Imgs[a].img)[1]<zxcWWHS()[1]+zxcWWHS()[3]&&Imgs[a].opc==0){Imgs[a].fade();Imgs.splice(a,1);a--}}}function Fade(a,b){this.img=a;this.src=b;this.opc=0;zxcOpacity(this.img,0)}function ImgLoad(a){var b=zxcByClassName(a);for(var c=0;c<b.length;c++){if(b[c].getAttribute("name")&&b[c].getElementsByTagName("IMG")[0]){oop=new Fade(b[c].getElementsByTagName("IMG")[0],b[c].getAttribute("name"));Imgs.push(oop)}}CkTop()}function a(){document.body.scrollTop=window.scrollTo(0,0);document.documentElement.scrollTop=scrollTo(0,0)}function setthumbcolorsize(a,b){document.getElementById("itemcolor_"+a).value=b;document.getElementById("colorselct_"+a).innerHTML=b;document.getElementById("itemcolordrop_"+a).style.display="none"}function checkmailNew(a){var b="@";var c=".";var d;var e=a.indexOf(b);var f=a.length;var g=a.indexOf(c);var h=" \"([{}])!#$%^&*';:,/\\?|+`~<>=~";if(a.indexOf(b)==-1){return false}if(a.indexOf(b)==-1||a.indexOf(b)==0||a.indexOf(b)==f-1){return false}if(a.indexOf(c)==-1||a.indexOf(c)==0||a.indexOf(c)==f-1){return false}if(a.indexOf(b,e+1)!=-1){return false}if(a.substring(e-1,e)==c||a.substring(e+1,e+2)==c){return false}if(a.indexOf(c,e+2)==-1){return false}for(i=0;i<h.length-1;i++){d=h.substring(i,i+1);if(a.indexOf(d)!=-1){return false}}return true}function hidetooltip(a){document.getElementById(a).style.display="none"}function showtooltip(a){document.getElementById(a).style.display=""}function textCounter(a,b,c){if(a.value.length>c)a.value=a.value.substring(0,c);else b.value=c-a.value.length}function searchquery(a,b,c){var d=document.form2.Name.value;var e=document.form2.mail.value;var f=document.form2.Comments.value;if(document.form2.Name.value==""){document.form2.Name.focus();return false}if(document.form2.mail.value==""){document.form2.mail.focus();return false}if(checkmailNew(e)!=true){document.getElementById("Div14").innerHTML="Enter Valid Email ID";document.form2.mail.focus();return false}if(document.form2.Comments.value==""){document.form2.Comments.focus();return false}if(f!=""){f=f.replace("'","char(39)");d=d.replace("'","char(39)");centerWindowX("submit.aspx?custemail="+e+"&custname="+d+"&mode=zeroresult"+"&pageurl="+a+"&qstr="+b+"&Keywords="+c+"&comments="+f);document.form2.reset();return false}else{return false}}function searchquery_New(a,b,c){var d=document.getElementById("Name");var e=document.getElementById("mail");var f=document.getElementById("Comments");if(d.value==""){d.focus();return false}if(e.value==""){e.focus();return false}if(checkmailNew(e.value)!=true){document.getElementById("Div14").innerHTML="Enter Valid Email ID";e.focus();return false}if(f.value==""){f.focus();return false}if(f.value!=""){comments=f.value;comments=comments.replace("'","char(39)");cname=d.value;cname=cname.replace("'","char(39)");centerWindowX("submit.aspx?custemail="+e.value+"&custname="+cname+"&mode=zeroresult"+"&pageurl="+a+"&qstr="+b+"&Keywords="+c+"&comments="+comments);d.value="";e.value="";f.value="";return false}else{return false}}function textCounter_New(a,b){var c=document.getElementById("remLen");if(a.value.length>b)a.value=a.value.substring(0,b);else c.value=b-a.value.length}function hidemain_menu(a){document.getElementById("More").style.display="none";document.getElementById("More")}function showmain_menu(a){document.getElementById("More").style.display="";document.getElementById("More")}function DisAllowspace(a){var b=window.event?a.keyCode:a.which;if(b>=48&&b<=57){return true}else if(b>=32&&b<=255){return false}}function getpricevalue(a){var a=a;var b=document.getElementById("pricerangefrom").value;var c=document.getElementById("pricerangeto").value;if(b==""||b=="From"){alert("Please enter minimum price");document.getElementById("pricerangefrom").focus()}else if(c==""||c=="To"){alert("Please enter maximum price");document.getElementById("pricerangeto").focus()}else if(parseInt(b,10)>parseInt(c,10)||parseInt(b,10)==parseInt(c,10)){alert("Maximum price must be greater than minimum price")}else{if(parseInt(b,10)-1>=0){var d=a+(b-1)+"-"+c}else{var d=a+b+"-"+c}window.parent.location.href=d}}function make_blankrange(a,b,c){var d=document.getElementById(b).value;if(c=="hide"){if(d==a){document.getElementById(b).value="";document.getElementById(b).style.color="#3E3939"}}else{if(d==a||d==""){document.getElementById(b).value=a;document.getElementById(b).style.color="#cccccc"}}}function getSelectedCheckbox(a){var b=new Array;var c=0;if(a[0]){for(var d=0;d<a.length;d++){if(a[d].checked){b.length=c;b[c]=d;c++}}}else{if(a.checked){b.length=c;b[c]=0}}return b}function getSelectedCheckboxValue(a){var b=new Array;var c=getSelectedCheckbox(a);if(c.length!=0){b.length=c.length;for(var d=0;d<c.length;d++){if(a[c[d]]){b[d]=a[c[d]].value}else{b[d]=a.value}}}return b}function submitAlertquery(){var a=document.notifyForm.pros.value;var b=document.notifyForm.mail.value;var c="",d="";if(document.notifyForm.icode!=null){c=document.notifyForm.icode.value;d=document.notifyForm.cid.value}var e="";if(document.notifyForm.aletfor!=null){aletfor=document.notifyForm.aletfor.value}var a=getSelectedCheckboxValue(document.notifyForm.pros);if(document.notifyForm.mail.value==""){alert("Please enter your Email.");document.notifyForm.mail.focus();return false}else if(document.notifyForm.mail.value!=""){var f=checkmail(document.notifyForm.mail.value);if(f==false){document.notifyForm.mail.focus();return false}}if(a!=""){document.getElementById("notifyrules").style.display="none";if(c!=""){centerWindowX("../store/submit.aspx?icode="+c+"&cid="+d+"&pros="+a+"&email="+b+"&mode=notifyitem")}else if(aletfor!=""){centerWindowX("../store/submit.aspx?alertfor="+aletfor+"&pros="+a+"&email="+b+"&mode=notifyitem")}}else{alert("Please select atleast one of the option");return false}}function HelpListhide(){document.getElementById("notifyrules").style.display="none"}function custnotifyrules(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function custmmtpophelp(){if(notifyrules.readyState==4){document.getElementById("notifyrules").innerHTML=notifyrules.responseText}else{document.getElementById("notifyrules").innerHTML="<table cellpadding=0 cellspacing=0 width=200 border=0 style='background:#ffffff;padding-left:5px' class='darkgreyborder'><tr><td width=200 class='carttext'><img src='../images/loadingstatus.gif' / alt=''><b> Loading, Please wait.....</b></td></tr></table>"}}function HelpList(a,b){document.getElementById("notifyrules").style.display="block";notifyrules=custnotifyrules();if(notifyrules==null){alert("Your browser does not support AJAX!");return}var c="../store/alert.aspx?icode="+a+"&opt="+b;notifyrules.onreadystatechange=custmmtpophelp;notifyrules.open("GET",c,true);notifyrules.send(null)}function restedivsize(){var a;a=document.documentElement.scrollHeight;document.getElementById("mainouterdiv").style.height=a+"px"}function checkmail(a){var b="@";var c=".";var d;var e=a.indexOf(b);var f=a.length;var g=a.indexOf(c);var h=" \"([{}])!#$%^&*';:,/\\?|+`~<>=~";if(a.indexOf(b)==-1){alert("Please Enter a valid Email ID.");return false}if(a.indexOf(b)==-1||a.indexOf(b)==0||a.indexOf(b)==f-1){alert("Please Enter a valid Email ID.");return false}if(a.indexOf(c)==-1||a.indexOf(c)==0||a.indexOf(c)==f-1){alert("Please Enter a valid Email ID.");return false}if(a.indexOf(b,e+1)!=-1){alert("Please Enter a valid Email ID.");return false}if(a.substring(e-1,e)==c||a.substring(e+1,e+2)==c){alert("Please Enter a valid Email ID.");return false}if(a.indexOf(c,e+2)==-1){alert("Please Enter a valid Email ID.");return false}for(i=0;i<h.length-1;i++){d=h.substring(i,i+1);if(a.indexOf(d)!=-1){alert("Please Enter a valid Email ID.");return false}}return true}function MM_openBrWindow(a,b,c){window.open(a,b,c)}function centerWindowX(a){if(document.all)var b=screen.width,c=screen.height;else if(document.layers)var b=window.outerWidth,c=window.outerHeight;else var b=640,c=480;var d=(b-490)/2,e=(c-190)/2;MM_openBrWindow(a,"info","width=400,height=150,screenX="+d+",screenY="+e+",top="+e+",left="+d+"")}function make_blanknmail(a,b){if(a=="hide"){if(document.getElementById(b).value=="Enter your Email id"){document.getElementById(b).value=""}}else if(a=="show"){if(document.getElementById(b).value==""){document.getElementById(b).value="Enter your Email id"}}}function submitLetterindexaspx_n(a){if(document.getElementById("Email").value==""||document.getElementById("Email").value=="Enter your Email id"){alert("Please Enter Email ID");document.getElementById("Email").focus()}else if(checkmail(document.getElementById("Email").value)){val=document.getElementById("Email").value;if(a=="Y"){centerWindowX("../store/submit.aspx?Email="+val+"&mode=letter")}else if(a=="N"){centerWindowX("../store/submit.aspx?Email="+val+"&mode=letter")}document.getElementById("Email").value=""}}function changebuttoncolor(a,b){var c="";if(b=="OVER"){c="#C13100"}else{c="#CC6600"}var d=window.event?event.srcElement:a.target;if(d.tagName=="INPUT"&&d.type=="submit"||d.tagName=="INPUT"&&d.type=="button")d.style.backgroundColor=c}function hideshowheading(a){}function loadadgiftadd(a){if(window.XMLHttpRequest){giftaddsban=new XMLHttpRequest}else{giftaddsban=new ActiveXObject("Microsoft.XMLHTTP")}giftaddsban.onreadystatechange=function(){if(giftaddsban.readyState==4&&giftaddsban.status==200){document.getElementById("giftbannerhead").innerHTML=giftaddsban.responseText}};var b;b=(new Date).getSeconds();giftaddsban.open("GET","../../include/addrotater2.aspx?p="+a+"&d="+b,true);giftaddsban.send()}function displayquery(a){s="width=545,height=370,left=150,top=55";s1="../store/itemquery.aspx?list="+a;win1=window.open(s1,"",s)}function showcartpopNew(a,b){document.getElementById("cartpop-"+a).innerHTML="<span style='font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-weight:normal;font-size:8pt;position:absolute;left:35px;top:8px'>"+b+"</span>";document.getElementById("cartpop-"+a).style.display="";setTimeout("document.getElementById('cartpop-"+a+"').style.display='none'",3e3)}function stateChangedSize(){if(xmlHttpsize.readyState==4){showminicart("N");document.getElementById("thumbSize_"+sizeICD).style.display="none"}}function addtocartwishSize(a,b){xmlHttpsize=GetXmlHttpObject();var c="";if(document.getElementById("itemcolor_"+a)!=null){if(document.getElementById("itemcolor_"+a).value==""){alert("Please select your desired color");return false}c=document.getElementById("itemcolor_"+a).value}var d="";if(document.getElementById("itemsize_"+a)!=null){if(document.getElementById("itemsize_"+a).value==""){alert("Please select your size");return false}d=document.getElementById("itemsize_"+a).value}var e="";if(document.getElementById("typeid_"+a)!=null){e=document.getElementById("typeid_"+a).value}var f="";if(document.getElementById("cid_"+a)!=null){f=document.getElementById("cid_"+a).value}sizeICD=a;if(xmlHttpsize==null){alert("Your browser does not support AJAX!");return}if(b=="addshop"){showcartpopNew(a,"Adding item to<br />Shopping bag")}else if(b=="addwish"){showcartpopNew(a,"Adding item to<br />Wish list")}var g="../shop/navigate-cart.aspx";g=g+"?icode="+a;g=g+"&mode="+b;if(d!=""){g=g+"&size="+d}if(c!=""){g=g+"&IAColor="+c}if(e!=""){g=g+"&typeid="+e}if(f!=""){g=g+"&cid="+f}xmlHttpsize.onreadystatechange=stateChangedSize;xmlHttpsize.open("GET",g,true);xmlHttpsize.send(null)}function sizeview_hide(a){a.style.display="none"}function setthumbitemsize(a,b){document.getElementById("itemsize_"+a).value=b;document.getElementById("sizeselct_"+a).innerHTML=b;document.getElementById("itemsizedrop_"+a).style.display="none"}function divbackgroundcolor(a,b){if(b=="over"){document.getElementById(a).style.backgroundColor="#cccccc"}else{document.getElementById(a).style.backgroundColor="#ffffff"}}function showthumbitemsize(a){document.getElementById("itemsizedrop_"+a).style.display=""}function hide(a){document.getElementById(a).style.display="none"}function GetXmlHttpObject(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function stateChangedNew(){if(xmlHttpNew.readyState==4){showminicart("N")}}function addtocartwishNew(a,b){xmlHttpNew=GetXmlHttpObject();if(xmlHttpNew==null){alert("Your browser does not support AJAX!");return}if(b=="addshop"){showcartpopNew(a,"Adding item to<br />Shopping bag")}else if(b=="addwish"){showcartpopNew(a,"Adding item to<br />Wish list")}var c="../shop/navigate-cart.aspx";c=c+"?icode="+a;c=c+"&mode="+b;icdNew=a;xmlHttpNew.onreadystatechange=stateChangedNew;xmlHttpNew.open("GET",c,true);xmlHttpNew.send(null)}function itemquickviewhide(a){document.getElementById("quickview_"+a).style.display="";document.getElementById("thumbDetailview_"+a).style.display="none"}function itemquickviewcache(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function itemSizestatus(){document.getElementById("thumbSize_"+sizeIcode).style.display="";if(itemSize.readyState==4){document.getElementById("thumbSize_"+sizeIcode).innerHTML=itemSize.responseText}else{document.getElementById("thumbSize_"+sizeIcode).innerHTML="<div style='backgroundcolor=#ffffff; width:100%; position:absolute'><img src='../images/loadingcircle.gif' alt=''/></div>"}}function showitemSize(a,b){var c;sizeIcode=a;c=(new Date).getMinutes();itemSize=itemquickviewcache();if(itemSize==null){alert("Your browser does not support AJAX!");return}var d="../store/sizeview.aspx";d=d+"?itemcode="+sizeIcode+"&mode="+b+"&dt="+c;itemSize.onreadystatechange=itemSizestatus;itemSize.open("GET",d,true);itemSize.send(null)}function itemdetailpophide(a){if(document.getElementById("thumbMenu_"+a+"")!=null){document.getElementById("thumbMenu_"+a+"").style.display="none"}document.getElementById("bg_"+a+"").style.backgroundColor="";if(document.getElementById("secCur_"+a+"")!=null){document.getElementById("secCur_"+a+"").style.display="none"}}function itemdetailpopshow(a){if(document.getElementById("thumbMenu_"+a+"")!=null){document.getElementById("thumbMenu_"+a+"").style.display=""}document.getElementById("bg_"+a+"").style.backgroundColor="#CCCCCC";if(document.getElementById("secCur_"+a+"")!=null){document.getElementById("secCur_"+a+"").style.display=""}}function showitempriceObject(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function showitemPrice(a,b,c,d){var e;e=get_cookie("currencychange");if(e!=null&&e!="USD"){var f=null;var g;g=(new Date).getTime();f=showitempriceObject();if(f==null){alert("Your browser does not support AJAX!");return}if(b==""){b=0}if(c==""){c=0}var h="../store/showitemprice.aspx";h=h+"?code="+a+"&price="+b+"&discountprice="+c+"&pgname="+d+"&chk="+g;f.onreadystatechange=function(){if(f.readyState==4&&f.status==200){document.getElementById("itempricediv_"+a).innerHTML=f.responseText}};f.open("GET",h,true);f.send(null)}}function showminicartNew(a){var b;b=GetXmlHttpObject1();if(b==null){alert("Your browser does not support AJAX!");return}var c;c="../shop/minishopcart.aspx";c=c+"?cart="+get_cookie("shopcart");c=c+"&DScart="+get_cookie("Dcart");c=c+"&indx="+a;b.onreadystatechange=function(){if(b.readyState==4){window.parent.document.getElementById("mini").innerHTML=b.responseText}};b.open("GET",c,true);b.send(null)}function GetXmlHttpObject1(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function get_cookie(a){var b=document.cookie.match(a+"=(.*?)(;|$)");if(b)return unescape(b[1]);else return null}function stateChangedfun(){if(xmlHttpobj.readyState==4){window.parent.document.getElementById("mini").innerHTML=xmlHttpobj.responseText}}function showminicart(a){xmlHttpobj=GetXmlHttpObject1();if(xmlHttpobj==null){alert("Your browser does not support AJAX!");return}var b;b="../shop/minishopbag.aspx";b=b+"?cart="+get_cookie("shopcart");b=b+"&DScart="+get_cookie("Dcart");b=b+"&indx="+a;xmlHttpobj.onreadystatechange=stateChangedfun;xmlHttpobj.open("GET",b,true);xmlHttpobj.send(null)}function verifysearchkeyword(){var a="";a=document.getElementById("q").value;if(a==""||a=="Sarees, Salwar Kameez, etc."){alert("Please enter keyword for search!")}else{document.forms["search"].submit()}}function verifysearchkeywords_new(a){var b="";b=document.getElementById("q").value;if(b==""||b=="Sarees, Salwar Kameez, etc."){alert("Please enter keyword for search!");return false}else{if(a=="search"){window.location.href="../store/search.aspx?q="+b;return false}else if(a=="adsearch"){window.location.href="../store/textsearch.aspx?cx=006683068870264856926:db-jn-vpts4&cof=FORID:11&q="+b}else if(a=="tag"){window.location.href="../store/tagging.aspx?t="+b}return true}}function verifysearchkeywords(a){var b="";b=document.getElementById("q").value;if(b==""||b=="Sarees, Salwar Kameez, etc."){alert("Please enter keyword for search!");return false}else{if(a=="search"){window.location.href="../../store/search.aspx?q="+b;return false}else if(a=="adsearch"){window.location.href="../../store/textsearch.aspx?cx=006683068870264856926:db-jn-vpts4&cof=FORID:11&q="+b}else if(a=="tag"){window.location.href="../../store/tagging.aspx?t="+b}return true}}function make_blank(a,b){if(a=="hide"){if(document.getElementById(b).value=="Sarees, Salwar Kameez, etc."){document.getElementById(b).value="";document.getElementById(b).style.color="#3E3939"}}else if(a=="show"){if(document.getElementById(b).value==""){document.getElementById(b).style.color="#cccccc";document.getElementById(b).value="Sarees, Salwar Kameez, etc."}}}function showheadNew(a){var b;b=get_cookie("custname");if(b!=null){document.getElementById("signcust").innerHTML="Hi. <span class='redprice' style='padding:0px;' >"+b+"</span>";document.getElementById("sign").innerHTML=",  <a href='../../account/loginform.aspx' title='My Account'>My Account</a>  |  <a href='../../account/logout.aspx' title='Sign Out'>Sign Out</a>"}else{document.getElementById("sign").innerHTML=" <a href='../../account/loginform.aspx' title='My Account'>My Account</a>"}}function showhead(a){var b;b=get_cookie("custname");if(b!=null){document.getElementById("signcust").innerHTML=b;document.getElementById("signcust").className="redprice";document.getElementById("signcust").style.paddingLeft=5;document.getElementById("sign").innerHTML=" ,  <a href='../../account/loginform.aspx' title='My Account'>My Account</a>  |  <a href='../../account/logout.aspx' title='Sign Out'>Sign Out</a>"}else{document.getElementById("sign").innerHTML=" <a href='../../account/loginform.aspx' title='My Account'>My Account</a>"}}function GetSetSecCurr(){var a=null;try{a=new XMLHttpRequest}catch(b){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}}return a}function SetSecCurrlistDropDown(a){var b;b=get_cookie("currencychange");if(b!=null){var c=0;c=GetSetSecCurr();var d=0;d=(new Date).getTime();if(c==null){alert("Your browser does not support AJAX!");return}var e=0;e="../store/CurrencyDropDown.aspx";e=e+"?loc="+a;e=e+"&chkt="+d;c.onreadystatechange=function(){if(c.readyState==4){document.getElementById("currencydropdown").innerHTML=c.responseText}};c.open("GET",e,true);c.send(null)}}function isSplCharcheck(a){var b="!#`~$%^&*+=[]';{}|\":<>";for(var c=0;c<a.length;c++){if(b.indexOf(a.charAt(c))!=-1){alert("Special Characters are not allowed!");return false}}}function disallowspecialchars(a){if(!a)a=window.event;if(a.target)el=a.target;else if(a.srcElement)el=a.srcElement;if(isIE5&&el.tagName=="INPUT"&&el.type=="text"||el.tagName=="TEXTAREA"||isMoz&&el.tagName=="INPUT"&&el.type=="text"||el.tagName=="TEXTAREA"){if(el.readOnly==false){if(isSplCharcheck(el.value)==false){var b=el.value;var c="!#`~$%^&*+=[]';{}|\":<>";for(var d=0;d<b.length;d++){if(c.indexOf(b.charAt(d))!=-1){var e=c.indexOf(b.charAt(d));var f=c.charAt(e);el.value=el.value.replace(f,"")}}}}}}function onContextMenu(a){if(onlyOnImages=false||isIE5&&event.srcElement.tagName=="IMG"||isMoz&&a.target.tagName=="IMG"){return cancelContextMenu(a)}}function cancelContextMenu(a){return false}var onlyOnImages=false;var isIE5=document.all&&document.getElementById;var isMoz=!isIE5&&document.getElementById;if(document.getElementById){document.oncontextmenu=onContextMenu;document.onkeyup=disallowspecialchars}var xmlHttpobj;var itemSize;var sizeIcode="";var xmlHttpNew;var icdNew;var xmlHttpsize;var sizeICD;var giftaddsban;var notifyrules;var Imgs=[];Fade.prototype.fade=function(){if(this.opc==0)this.img.src=this.src;zxcOpacity(this.img,this.opc++);var a=this;if(this.opc<101)setTimeout(function(){a.fade()},20)};var cstime
function submitAlertqueryNew(){
var pros=document.getElementById("pros").value;
var email=document.getElementById("mail").value;
var icode='',cid='';
if(document.getElementById("icode")!= null)
{
icode=document.getElementById("icode").value;
 cid=document.getElementById("cid").value}
var alertfor='';
if(document.getElementById("aletfor")!= null)
{aletfor=document.getElementById("aletfor").value;}
var pros=getSelectedCheckboxValue(document.getElementsByName("pros"));
if (document.getElementById("mail").value=="")
{alert("Please enter your Email.");	
document.getElementById("mail").focus();
 return false;}
else if(document.getElementById("mail").value!="")
    { var check=checkmail(document.getElementById("mail").value) 
		if (check==false){document.getElementById("mail").focus();
         return false;}
 }
 if(pros!="")
 {  document.getElementById('notifyrules').style.display='none';
     if(icode!='')
      {centerWindowX('../store/submit.aspx?icode='+icode+'&cid='+cid+'&pros='+pros+'&email='+email+'&mode=notifyitem');}
      else if(aletfor!='')
      {centerWindowX('../store/submit.aspx?alertfor='+aletfor+'&pros='+pros+'&email='+email+'&mode=notifyitem');
      
      }
      return false;
 }
  else
  {alert('Please select atleast one of the option');
    return false;}    
}
