
function clear_Search(myControl)
{if(myControl&&myControl.value=="Keywords or Items#")
myControl.value="";}
function ChangeSearch(myControl)
{if(myControl!=null&&myControl.value=='')
myControl.value="Keywords or Items#";}
function ValidSearch()
{var myControl;if(document.getElementById('Header_Search_txtSearch'))
{myControl=document.getElementById('Header_Search_txtSearch');}
if(document.getElementById('ctl00_Header1_search_txtSearch'))
{myControl=document.getElementById('ctl00_Header1_search_txtSearch');}
if(document.getElementById('ctl00_Header1_search_txtSearch'))
{myControl=document.getElementById('ctl00_Header1_search_txtSearch');}
if(myControl.value==''||myControl.value=='Keywords or Items#')
{alert("Please enter something to search");if(document.getElementById('Header_Search_txtSearch'))
{document.getElementById('Header_Search_txtSearch').focus();}
if(document.getElementById('ctl00_Header1_search_txtSearch'))
{document.getElementById('ctl00_Header1_search_txtSearch').focus();}
return false;}
if(myControl.value.length<3)
{alert("Please enter at least 3 letters to Search.");myControl.focus();return false;}
return true;}
function onKeyPressBlockNumbers(e)
{var key=window.event?window.event.keyCode:e.which;if(key==32||key==39||key==37||key==46||key==13||key==8||key==9||key==189||key==109||key==0)
{return key;}
var keychar=String.fromCharCode(key);var reg=/\d/;if(window.event)
return event.returnValue=reg.test(keychar);else
return reg.test(keychar);}
function checkSearch()
{if(document.getElementById("ctl00_ContentPlaceHolder1_txtSearch").value=='')
{alert("Please enter something to Search.");document.getElementById("ctl00_ContentPlaceHolder1_txtSearch").focus();return false;}
if(document.getElementById("ctl00_ContentPlaceHolder1_txtSearch").value.length<3)
{alert("Please enter at least 3 letters to Search.");document.getElementById("ctl00_ContentPlaceHolder1_txtSearch").focus();return false;}
if((document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceFrm').value=='')&&(document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceTo').value!=''))
{alert('Please enter Price From');document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceFrm').focus();return false;}
if((document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceFrm').value!='')&&(document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceTo').value==''))
{alert('Please enter Price To');document.getElementById('ctl00_ContentPlaceHolder1_txtSalePriceTo').focus();return false;}
if(document.getElementById('ctl00_ContentPlaceHolder1_txtSearch').value=='')
{alert('Please enter something to Search.');document.getElementById('ctl00_ContentPlaceHolder1_txtSearch').focus();return false;}
var a=parseInt(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value);var b=parseInt(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value);if(a>b)
{alert('Price From should be less than Price To.');return false;}
else if(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value!=''&&document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value=='')
{alert('Please enter Price To.');document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").focus();return false;}
else if(isNaN(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value)||(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value<0))
{alert('Please enter valid Price To.');document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").focus();return false;}
else if(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value!=''&&document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value=='')
{alert('Please enter Price From.');document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").focus();return false;}
else if(isNaN(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value)||(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value<0))
{alert('Please enter valid Price From.');document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").focus();return false;}
else if(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value==0&&document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value.length!=0&&document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value==0&&document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value.length!=0)
{alert('Price From and Price To cannot be 0.');document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").focus();document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value='';document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value='';return false;}}
function chkPrice()
{var a=parseInt(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceFrm").value);var b=parseInt(document.getElementById("ctl00_ContentPlaceHolder1_txtSalePriceTo").value);if(a>b)
{alert('Price From should be less than Price To.');return false;}}
function ValidNewSletter()
{var element;if(document.getElementById('Footer_NewsLetter_txtSubscriber'))
{element=document.getElementById('Footer_NewsLetter_txtSubscriber');}
if(document.getElementById('ctl00_NewsLetter_txtSubscriber'))
{element=document.getElementById('ctl00_NewsLetter_txtSubscriber');}
if(element.value=='')
{alert('Please enter your E-mail Address.');if(document.getElementById('Footer_NewsLetter_txtSubscriber'))
{document.getElementById('Footer_NewsLetter_txtSubscriber').focus();}
if(document.getElementById('ctl00_NewsLetter_txtSubscriber'))
{document.getElementById('ctl00_NewsLetter_txtSubscriber').focus();}
return false;}
else if(element.value=='Enter your E-Mail Address')
{alert('Please enter your E-Mail Address.');if(document.getElementById('Footer_NewsLetter_txtSubscriber'))
{document.getElementById('Footer_NewsLetter_txtSubscriber').focus();}
if(document.getElementById('ctl00_NewsLetter_txtSubscriber'))
{document.getElementById('ctl00_NewsLetter_txtSubscriber').focus();}
return false;}
else
{var testresults;var str=element.value;var filter=/^.+@.+\..{2,3}$/;if(!filter.test(str))
{alert("Please enter valid E-Mail Address.")
if(document.getElementById('Footer_NewsLetter_txtSubscriber'))
{document.getElementById('Footer_NewsLetter_txtSubscriber').focus();}
if(document.getElementById('ctl00_NewsLetter_txtSubscriber'))
{document.getElementById('ctl00_NewsLetter_txtSubscriber').focus();}
return false;}}

}
function clear_text()
{if(document.getElementById('Footer_NewsLetter_txtSubscriber')&&document.getElementById('Footer_NewsLetter_txtSubscriber').value=="Enter your E-Mail Address")
{document.getElementById('Footer_NewsLetter_txtSubscriber').value="";}
if(document.getElementById('ctl00_NewsLetter_txtSubscriber')&&document.getElementById('ctl00_NewsLetter_txtSubscriber').value=="Enter your E-Mail Address")
{document.getElementById('ctl00_NewsLetter_txtSubscriber').value="";}
return false;}
function clear_NewsLetter(myControl)
{if(myControl&&myControl.value=="Enter your E-Mail Address")
myControl.value="";}
function ChangeNewsLetter(myControl)
{if(myControl!=null&&myControl.value=='')
myControl.value="Enter your E-Mail Address";}
function Change()
{if(document.getElementById('Footer_NewsLetter_txtSubscriber')!=null&&document.getElementById('Footer_NewsLetter_txtSubscriber').value=='')
document.getElementById('Footer_NewsLetter_txtSubscriber').value="Enter your E-Mail Address";if(document.getElementById('ctl00_NewsLetter_txtSubscriber')!=null&&document.getElementById('ctl00_NewsLetter_txtSubscriber').value=='')
document.getElementById('ctl00_NewsLetter_txtSubscriber').value="Enter your E-Mail Address";return false;}
var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing","allowfullscreen","allownetworking"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(FO,id){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac"))return;UFO.getFlashVersion();UFO.foList[id]=UFO.updateFO(FO);UFO.createCSS("#"+id,"visibility:hidden;");UFO.domLoad(id);},updateFO:function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined")FO.ximovie=UFO.ximovie;if(typeof FO.xiwidth=="undefined")FO.xiwidth=UFO.xiwidth;if(typeof FO.xiheight=="undefined")FO.xiheight=UFO.xiheight;}
FO.mainCalled=false;return FO;},domLoad:function(id){var _t=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(id)!=null){UFO.main(id);clearInterval(_t);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(id);clearInterval(_t);},null);}},main:function(id){var _fo=UFO.foList[id];if(_fo.mainCalled)return;UFO.foList[id].mainCalled=true;document.getElementById(id).style.visibility="hidden";if(UFO.hasRequired(id)){if(UFO.hasFlashVersion(parseInt(_fo.majorversion,10),parseInt(_fo.build,10))){if(typeof _fo.setcontainercss!="undefined"&&_fo.setcontainercss=="true")UFO.setContainerCSS(id);UFO.writeSWF(id);}
else if(_fo.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(id);}}
document.getElementById(id).style.visibility="visible";},createCSS:function(selector,declaration){var _h=document.getElementsByTagName("head")[0];var _s=UFO.createElement("style");if(!UFO.uaHas("ieWin"))_s.appendChild(document.createTextNode(selector+" {"+declaration+"}"));_s.setAttribute("type","text/css");_s.setAttribute("media","screen");_h.appendChild(_s);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var _ls=document.styleSheets[document.styleSheets.length-1];if(typeof _ls.addRule=="object")_ls.addRule(selector,declaration);}},setContainerCSS:function(id){var _fo=UFO.foList[id];var _w=/%/.test(_fo.width)?"":"px";var _h=/%/.test(_fo.height)?"":"px";UFO.createCSS("#"+id,"width:"+_fo.width+_w+"; height:"+_fo.height+_h+";");if(_fo.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");}
if(_fo.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");}},createElement:function(el){return(UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",el):document.createElement(el);},createObjParam:function(el,aName,aValue){var _p=UFO.createElement("param");_p.setAttribute("name",aName);_p.setAttribute("value",aValue);el.appendChild(_p);},uaHas:function(ft){var _u=UFO.ua;switch(ft){case"w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case"xml":var _m=document.getElementsByTagName("meta");var _l=_m.length;for(var i=0;i<_l;i++){if(/content-type/i.test(_m[i].getAttribute("http-equiv"))&&/xml/i.test(_m[i].getAttribute("content")))return true;}
return false;case"ieMac":return/msie/.test(_u)&&!/opera/.test(_u)&&/mac/.test(_u);case"ieWin":return/msie/.test(_u)&&!/opera/.test(_u)&&/win/.test(_u);case"gecko":return/gecko/.test(_u)&&!/applewebkit/.test(_u);case"opera":return/opera/.test(_u);case"safari":return/applewebkit/.test(_u);default:return false;}},getFlashVersion:function(){if(UFO.fv[0]!=0)return;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var _d=navigator.plugins["Shockwave Flash"].description;if(typeof _d!="undefined"){_d=_d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _m=parseInt(_d.replace(/^(.*)\..*$/,"$1"),10);var _r=/r/.test(_d)?parseInt(_d.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[_m,_r];}}
else if(window.ActiveXObject){UFO.pluginType="ax";try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];_a.AllowScriptAccess="always";}
catch(e){if(UFO.fv[0]==6)return;}
try{var _a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}
if(typeof _a=="object"){var _d=_a.GetVariable("$version");if(typeof _d!="undefined"){_d=_d.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(_d[0],10),parseInt(_d[2],10)];}}}},hasRequired:function(id){var _l=UFO.req.length;for(var i=0;i<_l;i++){if(typeof UFO.foList[id][UFO.req[i]]=="undefined")return false;}
return true;},hasFlashVersion:function(major,release){return(UFO.fv[0]>major||(UFO.fv[0]==major&&UFO.fv[1]>=release))?true:false;},writeSWF:function(id){var _fo=UFO.foList[id];var _e=document.getElementById(id);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(_e.hasChildNodes()){_e.removeChild(_e.firstChild);}
var _obj=UFO.createElement("object");_obj.setAttribute("type","application/x-shockwave-flash");_obj.setAttribute("data",_fo.movie);_obj.setAttribute("width",_fo.width);_obj.setAttribute("height",_fo.height);var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined")_obj.setAttribute(UFO.optAtt[i],_fo[UFO.optAtt[i]]);}
var _o=UFO.opt.concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined")UFO.createObjParam(_obj,_o[i],_fo[_o[i]]);}
_e.appendChild(_obj);}
else{var _emb="";var _o=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var _l=_o.length;for(var i=0;i<_l;i++){if(typeof _fo[_o[i]]!="undefined")_emb+=' '+_o[i]+'="'+_fo[_o[i]]+'"';}
_e.innerHTML='<embed type="application/x-shockwave-flash" src="'+_fo.movie+'" width="'+_fo.width+'" height="'+_fo.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+_emb+'></embed>';}}
else if(UFO.pluginType=="ax"){var _objAtt="";var _l=UFO.optAtt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.optAtt[i]]!="undefined")_objAtt+=' '+UFO.optAtt[i]+'="'+_fo[UFO.optAtt[i]]+'"';}
var _objPar="";var _l=UFO.opt.length;for(var i=0;i<_l;i++){if(typeof _fo[UFO.opt[i]]!="undefined")_objPar+='<param name="'+UFO.opt[i]+'" value="'+_fo[UFO.opt[i]]+'" />';}
var _p=window.location.protocol=="https:"?"https:":"http:";_e.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+_objAtt+' width="'+_fo.width+'" height="'+_fo.height+'" codebase="'+_p+'//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+_fo.majorversion+',0,'+_fo.build+',0"><param name="movie" value="'+_fo.movie+'" />'+_objPar+'</object>';}},createDialog:function(id){var _fo=UFO.foList[id];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(_fo.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(_fo.xiheight,10)/2)+"px; width:"+_fo.xiwidth+"px; height:"+_fo.xiheight+"px;");var _b=document.getElementsByTagName("body")[0];var _c=UFO.createElement("div");_c.setAttribute("id","xi-con");var _d=UFO.createElement("div");_d.setAttribute("id","xi-dia");_c.appendChild(_d);_b.appendChild(_c);var _mmu=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var _mmd=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}
else{var _mmd=document.title=document.title.slice(0,47)+" - Flash Player Installation";}
var _mmp=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var _uc=typeof _fo.xiurlcancel!="undefined"?"&xiUrlCancel="+_fo.xiurlcancel:"";var _uf=typeof _fo.xiurlfailed!="undefined"?"&xiUrlFailed="+_fo.xiurlfailed:"";UFO.foList["xi-dia"]={movie:_fo.ximovie,width:_fo.xiwidth,height:_fo.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+_mmu+"&MMplayerType="+_mmp+"&MMdoctitle="+_mmd+_uc+_uf};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){var _b=document.getElementsByTagName("body")[0];var _c=document.getElementById("xi-con");_b.removeChild(_c);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;");},cleanupIELeaks:function(){var _o=document.getElementsByTagName("object");var _l=_o.length
for(var i=0;i<_l;i++){_o[i].style.display="none";for(var x in _o[i]){if(typeof _o[i][x]=="function"){_o[i][x]=null;}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks);}
function MM_openBrWindow(theURL,winName,features)
{if(theURL.search(/clicktoenlarge.aspx/i)==0)
return;window.open(theURL,winName,features);}
function bookmarksite(title,url)
{if(window.sidebar)
window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
window.external.AddFavorite(url,title);else
alert("Press Ctl + D To Bookmark this Page.");}
function PasswordValidation(e)
{var unicode=e.charCode?e.charCode:e.keyCode;return!(unicode==32);}
function DisplayEditRating()
{document.getElementById('ctl00_ContentPlaceHolder1_DivRatingReview').style.display='';}
ImageLoad=new Image();function LoadImage(path)
{ImageLoad.src=path;}
var PageArray=new Array();function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
return[pageWidth,pageHeight];}
function clear_Search(myControl)
{if(myControl&&myControl.value=="Keywords or Items#")
myControl.value="";}
function ChangeSearch(myControl)
{if(myControl!=null&&myControl.value=='')
myControl.value="Keywords or Items#";}
function hideLayer(elementId)
{CartVisible=false;if(document.getElementById(elementId)!=null)
{document.getElementById(elementId).style.display="none";}}
function showLayer(elementId)
{if(document.getElementById(elementId)!=null)
{document.getElementById(elementId).style.display="block";}}
function CheckQty(e)
{var key=window.event?window.event.keyCode:e.which;if(key==13)
{UpdateProduct();return false;}
if(key==8||key==9||key==189||key==109||key==0)
{return key;}
var keychar=String.fromCharCode(key);var reg=/\d/;if(window.event)
return event.returnValue=reg.test(keychar);else
return reg.test(keychar);}
function onKeyPressBlockNumbers(e)
{var key=window.event?window.event.keyCode:e.which;if(key==13||key==8||key==9||key==189||key==109||key==0)
{return key;}
var keychar=String.fromCharCode(key);var reg=/\d/;if(window.event)
return event.returnValue=reg.test(keychar);else
return reg.test(keychar);}
function roundNumber(num,dec){var result=Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);return result;}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function tabberObj(argsObj)
{var arg;this.div=null;this.classMain="tabber1";this.classMainLive="tabberlive1";this.classTab="tabbertab1";this.classTabDefault="tabbertabdefault";this.classNav="tabbernav1";this.classTabHide="tabbertabhide";this.classNavActive="tabberactive";this.titleElements=['h2','h3','h4','h5','h6'];this.titleElementsStripHTML=true;this.removeTitle=true;this.addLinkId=false;this.linkIdFormat='<tabberid>nav<tabnumberone>';for(arg in argsObj){this[arg]=argsObj[arg];}
this.REclassMain=new RegExp('\\b'+this.classMain+'\\b','gi');this.REclassMainLive=new RegExp('\\b'+this.classMainLive+'\\b','gi');this.REclassTab=new RegExp('\\b'+this.classTab+'\\b','gi');this.REclassTabDefault=new RegExp('\\b'+this.classTabDefault+'\\b','gi');this.REclassTabHide=new RegExp('\\b'+this.classTabHide+'\\b','gi');this.tabs=new Array();if(this.div){this.init(this.div);this.div=null;}}
tabberObj.prototype.init=function(e)
{var
childNodes,i,i2,t,defaultTab=dftab,DOM_ul,DOM_li,DOM_a,aId,headingElement;if(!document.getElementsByTagName){return false;}
if(e.id){this.id=e.id;}
this.tabs.length=0;childNodes=e.childNodes;for(i=0;i<childNodes.length;i++){if(childNodes[i].className&&childNodes[i].className.match(this.REclassTab)){t=new Object();t.div=childNodes[i];this.tabs[this.tabs.length]=t;if(childNodes[i].className.match(this.REclassTabDefault)){defaultTab=this.tabs.length-1;}}}
DOM_ul=document.createElement("ul");DOM_ul.className=this.classNav;for(i=0;i<this.tabs.length;i++){t=this.tabs[i];t.headingText=t.div.title;if(this.removeTitle){t.div.title='';}
if(!t.headingText){for(i2=0;i2<this.titleElements.length;i2++){headingElement=t.div.getElementsByTagName(this.titleElements[i2])[0];if(headingElement){t.headingText=headingElement.innerHTML;if(this.titleElementsStripHTML){t.headingText.replace(/<br>/gi," ");t.headingText=t.headingText.replace(/<[^>]+>/g,"");t.headingText=t.headingText.replace(/^\s*|\s*$/g,"");}
break;}}}
if(!t.headingText){t.headingText=i+1;}
DOM_li=document.createElement("li");t.li=DOM_li;DOM_a=document.createElement("a");DOM_a.appendChild(document.createTextNode(t.headingText));DOM_a.href="javascript:void(null);";DOM_a.title=t.headingText;DOM_a.onclick=this.navClick;DOM_a.tabber=this;DOM_a.tabberIndex=i;if(this.addLinkId&&this.linkIdFormat){aId=this.linkIdFormat;aId=aId.replace(/<tabberid>/gi,this.id);aId=aId.replace(/<tabnumberzero>/gi,i);aId=aId.replace(/<tabnumberone>/gi,i+1);aId=aId.replace(/<tabtitle>/gi,t.headingText.replace(/[^a-zA-Z0-9\-]/gi,''));DOM_a.id=aId;}
DOM_li.appendChild(DOM_a);DOM_ul.appendChild(DOM_li);}
e.insertBefore(DOM_ul,e.firstChild);e.className=e.className.replace(this.REclassMain,this.classMainLive);this.tabShow(defaultTab);if(typeof this.onLoad=='function'){this.onLoad({tabber:this});}
return this;};tabberObj.prototype.navClick=function(event)
{var
rVal,a,self,tabberIndex,onClickArgs;a=this;if(!a.tabber){return false;}
self=a.tabber;tabberIndex=a.tabberIndex;a.blur();if(typeof self.onClick=='function'){onClickArgs={'tabber':self,'index':tabberIndex,'event':event};if(!event){onClickArgs.event=window.event;}
rVal=self.onClick(onClickArgs);if(rVal===false){return false;}}
self.tabShow(tabberIndex);return false;};tabberObj.prototype.tabHideAll=function()
{var i;for(i=0;i<this.tabs.length;i++){this.tabHide(i);}};tabberObj.prototype.tabHide=function(tabberIndex)
{var div;if(!this.tabs[tabberIndex]){return false;}
div=this.tabs[tabberIndex].div;if(!div.className.match(this.REclassTabHide)){div.className+=' '+this.classTabHide;}
this.navClearActive(tabberIndex);return this;};tabberObj.prototype.tabShow=function(tabberIndex)
{var div;if(!this.tabs[tabberIndex]){for(i=0;i<this.tabs.length;i++){if(this.tabs[i].div.id=="divReview")
{tabberIndex=i;}}
if(!this.tabs[tabberIndex])tabberIndex=0;}
this.tabHideAll();div=this.tabs[tabberIndex].div;div.className=div.className.replace(this.REclassTabHide,'');this.navSetActive(tabberIndex);if(typeof this.onTabDisplay=='function'){this.onTabDisplay({'tabber':this,'index':tabberIndex});}
return this;};tabberObj.prototype.navSetActive=function(tabberIndex)
{this.tabs[tabberIndex].li.className=this.classNavActive;return this;};tabberObj.prototype.navClearActive=function(tabberIndex)
{this.tabs[tabberIndex].li.className='';return this;};function tabberAutomatic(tabberArgs)
{var
tempObj,divs,i;if(!tabberArgs){tabberArgs={};}
tempObj=new tabberObj(tabberArgs);divs=document.getElementsByTagName("div");for(i=0;i<divs.length;i++){if(divs[i].className&&divs[i].className.match(tempObj.REclassMain)){tabberArgs.div=divs[i];divs[i].tabber=new tabberObj(tabberArgs);}}
return this;}
function tabberAutomaticOnLoad(tabberArgs)
{var oldOnLoad;if(!tabberArgs){tabberArgs={};}
oldOnLoad=window.onload;if(typeof window.onload!='function'){window.onload=function(){tabberAutomatic(tabberArgs);};}else{window.onload=function(){oldOnLoad();tabberAutomatic(tabberArgs);};}}
if(typeof tabberOptions=='undefined'){tabberAutomaticOnLoad();}else{if(!tabberOptions['manualStartup']){tabberAutomaticOnLoad(tabberOptions);}}
function MM_openBrWindow(theURL,winName,features)
{if(theURL.search(/clicktoenlarge.aspx/i)==0)
return;window.open(theURL,winName,features);}
function bookmarksite(title,url)
{if(window.sidebar)
window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
window.external.AddFavorite(url,title);else
alert("Press Ctl + D To Bookmark this Page.");}
function getBody(content)
{var x=content.indexOf("<form");x=content.indexOf(">",x);var y=content.lastIndexOf("</form>");return content.slice(x+1,y);}
function prevvalue(x,txtid)
{var txt=document.getElementById(txtid);if(txt.value>1)
txt.value=parseInt(txt.value)-1;var allElts;allElts=document.getElementById("ctl00_ContentPlaceHolder1_cart").getElementsByTagName("input");var packsize=document.getElementById("ctl00_ContentPlaceHolder1_txthPackSize").value;var i,totalqty=0;for(i=0;i<allElts.length;i++)
{var elt=allElts[i];if(elt.type=="text"&&elt.id.toLowerCase().indexOf('txtqty')!=-1)
totalqty=parseInt(totalqty)+parseInt(elt.value);}
if(totalqty>packsize)
{document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerHTML='Your can only purchase '+packsize+' products in your package for this product.';return false;}
else
document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerHTML='';}
function nextvalue(x,txtid)
{var txt=document.getElementById(txtid);txt.value=parseInt(txt.value)+1;var allElts;allElts=document.getElementById("ctl00_ContentPlaceHolder1_cart").getElementsByTagName("input");var packsize=document.getElementById("ctl00_ContentPlaceHolder1_txthPackSize").value;var i,totalqty=0;for(i=0;i<allElts.length;i++)
{var elt=allElts[i];if(elt.type=="text"&&elt.id.toLowerCase().indexOf('txtqty')!=-1)
totalqty=parseInt(totalqty)+parseInt(elt.value);}
if(totalqty>packsize)
{document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerHTML='Your can only purchase '+packsize+' products in your package for this product.';return false;}
else
document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerHTML='';}
function checkcartqty(e)
{var allElts;allElts=document.getElementById("ctl00_ContentPlaceHolder1_cart").getElementsByTagName("input");var packsize=document.getElementById("ctl00_ContentPlaceHolder1_txthPackSize").value;var i,totalqty=0;for(i=0;i<allElts.length;i++)
{var elt=allElts[i];if(elt.type=="text"&&elt.id.toLowerCase().indexOf('txtqty')!=-1)
{if(isNaN(elt.value)||elt.value<=0)
{alert('Please enter valid Quantity in Cart');elt.focus();return false;}
else
totalqty=parseInt(totalqty)+parseInt(elt.value);}}
if(totalqty>packsize)
{document.getElementById("ctl00_ContentPlaceHolder1_lblMsg").innerHTML='Your can only purchase '+packsize+' products in your package for this product.';alert('Your can only purchase '+packsize+' products in your package for this product.');return false;}}
﻿ function ValidateRating()
{var IsValid=false;var Message='Please enter ';if(document.getElementById('ctl00_ContentPlaceHolder1_txtage').value==''||document.getElementById('ctl00_ContentPlaceHolder1_txtage').value=='0')
{Message=Message+'age';document.getElementById('ctl00_ContentPlaceHolder1_txtage').focus();}
else
IsValid=true;if(Message!='Please enter ')
alert(Message);return IsValid;}
function DisplayEditRating()
{document.getElementById('ctl00_ContentPlaceHolder1_DIVRatingRw').style.display='block';document.getElementById('ctl00_ContentPlaceHolder1_DivRatingReview').style.display='block';}
function numbersonly(e)
{var unicode;if(window.event)unicode=window.event.keyCode;else if(e)unicode=e.which;if(unicode!=8&&unicode!=46&&unicode!=37&&unicode!=39){if((!(unicode>47&&unicode<58))&&(!(unicode>95&&unicode<106)))
return false}}
function MM_openBrWindow(theURL,winName,features)
{window.open(theURL,winName,features);}
var InvArray=new Array();var Variant1;var Variant2;var Variant3;function CheckInventory()
{var HasInventory=false;var SoldOut=false;var AskedInventory=document.getElementById('ctl00_ContentPlaceHolder1_txtQty').value;var msg='';if(InvArray[0]=='MainInventory')
{HasInventory=true;}
if(InvArray[0]=='NoInventory')
{HasInventory=false;}
else
{for(var i=0;i<InvArray.length;i++)
{var temp=InvArray[i].split(',');if(Variant1&&Variant2&&Variant3)
{if(Variant1.value==temp[0]&&Variant2.value==temp[1]&&Variant3.value==temp[2])
{if(temp[3]==-1)
SoldOut=true;else if(AskedInventory>temp[3])
{msg='Quantity entered exceeds available products. Please select '+temp[3]+' or less.';}
HasInventory=true;}}
else if(Variant1&&Variant2)
{if(Variant1.value==temp[0]&&Variant2.value==temp[1])
{if(temp[2]==-1)
SoldOut=true;else if(AskedInventory>temp[2])
{msg='Quantity entered exceeds available products. Please select '+temp[2]+' or less.';}
HasInventory=true;}}
else if(Variant1)
{if(Variant1.value==temp[0])
{if(temp[1]==-1)
SoldOut=true;else if(AskedInventory>temp[1])
{msg='Quantity entered exceeds available products. Please select '+temp[1]+' or less.';}
HasInventory=true;}}}}
if(HasInventory&&!SoldOut)
{document.getElementById("ctl00_ContentPlaceHolder1_btnAddToCart").style.display='';document.getElementById("lnkComingSoon").style.display='none';document.getElementById("lnkSoldOut").style.display='none';}
else if(SoldOut)
{document.getElementById("ctl00_ContentPlaceHolder1_btnAddToCart").style.display='none';document.getElementById("lnkComingSoon").style.display='none';document.getElementById("lnkSoldOut").style.display='';}
else
{document.getElementById("ctl00_ContentPlaceHolder1_btnAddToCart").style.display='none';document.getElementById("lnkComingSoon").style.display='';document.getElementById("lnkSoldOut").style.display='none';}
if(msg.length>0)
{alert(msg);return false;}
return true;}
function checkquantity()
{var ToaltalQuantityValue=document.getElementById("ctl00_ContentPlaceHolder1_TotalQuantity").value;if((document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value=='')||(document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value=='0'))
{alert("Please enter valid digits only !!!");document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value=1;document.getElementById("ctl00_ContentPlaceHolder1_txtQty").focus();return false;}
else if(isNaN(document.getElementById('ctl00_ContentPlaceHolder1_txtQty').value)||document.getElementById('ctl00_ContentPlaceHolder1_txtQty').value<0)
{alert('Please enter valid digits only !!!');document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value=1;document.getElementById('ctl00_ContentPlaceHolder1_txtQty').focus();return false;}
else
{if(parseInt(document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value)>parseInt(ToaltalQuantityValue))
{alert("Maximum available Quantity in the inventory "+ToaltalQuantityValue);document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value=ToaltalQuantityValue;document.getElementById("ctl00_ContentPlaceHolder1_txtQty").focus();return false;}
else
{ var ddlclr = document.getElementById("ctl00_ContentPlaceHolder1_selAttrcolor");if (ddlclr != null){if (document.getElementById("ctl00_ContentPlaceHolder1_selAttrcolor").selectedIndex == 0){alert("Please select color");return false;}else{return true;}}else{return true;}}}}
function SetCalcPath(link,PID)
{if(!document.getElementById("ctl00_ContentPlaceHolder1_txtQty"))
return;var qty=document.getElementById("ctl00_ContentPlaceHolder1_txtQty").value;if(qty=='')
qty='1';if(PID!='')
MM_openBrWindow('/shippingcalcpopup.aspx?productid='+PID+'&qty='+qty+'','ClickToenlarge','width=720,height=500,scrollbars=yes');}
var count=0;function AddMultipleItem()
{var chkBoxCount=document.getElementsByTagName("input");var done=false;for(i=0;i<chkBoxCount.length;i++)
{if(chkBoxCount[i].type=='checkbox')
{var myvar=null;


if(chkBoxCount[i].checked)
{count++;if (document.getElementById("txtAddOn"+chkBoxCount[i].value).value == ''){alert('Please enter valid digits only !!!');document.getElementById("txtAddOn"+chkBoxCount[i].value).focus();return false;}var quantity=parseInt(document.getElementById("txtAddOn"+chkBoxCount[i].value).value);
 if(quantity == 0)
{
alert('Please enter valid digits only !!!.');
return false;
}
Qstring="?PID="+chkBoxCount[i].value+"&Qty="+quantity+"&referesh=true";done=AjaxFunction(Qstring);}}}
redirect();return false;}
function redirect()
{if(count==0)
{alert('Please Select At Least 1 Product.');}

else
{location.href='/addtocart.aspx?mitem=true';}}
function AjaxFunction(Qstring)
{var str,filename,url;var xmlHttp=null
if(typeof window.ActiveXObject!='undefined')
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
else
{xmlHttp=new XMLHttpRequest();}
filename='/AddToCart.aspx'+Qstring;var url=filename;xmlHttp.open("GET",url,false);xmlHttp.send(null);if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
{return true;}}
function AddPackage(e)
{var str,filename,url;var xmlHttp=null
if(typeof window.ActiveXObject!='undefined')
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
else
{xmlHttp=new XMLHttpRequest();}
filename='/ProductDetail.aspx?PID='+e;var url=filename;xmlHttp.open("GET",url,false);xmlHttp.send(null);if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
{document.getElementById("open").style.display="block";document.getElementById("open").innerHTML=getBody(xmlHttp.responseText);}}
function clear_textme(myControl)
{if(myControl&&myControl.value=="Enter your E-Mail Address")
myControl.value="";}
function Changeme(myControl)
{if(myControl!=null&&myControl.value=='')
myControl.value="Enter your E-Mail Address";}
function ValidNewSletterme()
{var myControl;if(document.getElementById('ctl00_NewsLetter_imgSubscribeNews'))
{myControl=document.getElementById('ctl00_NewsLetter_imgSubscribeNews');}
if(myControl.value==''||myControl.value=='Enter your E-Mail Address')
{alert("Please enter E-Mail Address");myControl.focus();return false;}
else
{var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{1,4})$/;if(reg.test(myControl.value)==false)
{alert('Enter Valid E-Mail Address');myControl.focus();return false;}}
return true;}
function onKeyPressBlockNumbers(e)
{var key=window.event?window.event.keyCode:e.which;if(key==32||key==39||key==37||key==46||key==13||key==8||key==9||key==189||key==0)
{return key;}
var keychar=String.fromCharCode(key);var reg=/\d/;if(window.event)
return event.returnValue=reg.test(keychar);else
return reg.test(keychar);}
function keyRestrict(e,validchars)
{var key='',keychar='';key=getKeyCode(e);if(key==null)return true;keychar=String.fromCharCode(key);keychar=keychar.toLowerCase();validchars=validchars.toLowerCase();if(validchars.indexOf(keychar)!=-1)
return true;if(key==null||key==0||key==8||key==9||key==13||key==27||key==104)
return true;return false;}
function getKeyCode(e)
{if(window.event)
return window.event.keyCode;else if(e)
return e.which;else
return null;}
function GetQty(url,id)
{var valQty=document.getElementById(id).value;if((document.getElementById(id).value=="")||(document.getElementById(id).value=="0"))
{alert('Please enter valid Quantity.');}
else
{location.href=url+valQty;}}
function validate(evt){var theEvent=evt||window.event;var key=theEvent.keyCode||theEvent.which;key=String.fromCharCode(key);var regex=/[0-9]/;if(!regex.test(key)){theEvent.returnValue=false;theEvent.preventDefault();}}
function LoadVideo()
{if(document.getElementById("aVedio"))
{if(document.getElementById('aVedio').innerHTML.toLowerCase().indexOf("show video")!=-1)
{document.getElementById('divImg').style.display='none';document.getElementById('fba').style.display='block';document.getElementById('aVedio').innerHTML='Show Image';}
else
{document.getElementById('divImg').style.display='block';document.getElementById('fba').style.display='none';document.getElementById('aVedio').innerHTML='Show Video';}}}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function setDivSalePrice(saleprice)
{if(document.getElementById('divSalePrice'))
document.getElementById('divSalePrice').innerHTML=saleprice;else
document.getElementById('divPrice').innerHTML=saleprice;if(document.getElementById('SalePrice'))
document.getElementById('SalePrice').innerHTML=saleprice.replace("$","");}var myWindow;function openCenteredWindow(url,wi,he){var width=wi;var height=he;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var windowFeatures="width="+width+",height="+height+",status,resizable,scrollbars=yes,left="+left+",top="+top+"screenX="+left+",screenY="+top;myWindow=window.open(url,"subWind",windowFeatures);}
function openCenteredWindowmore(url,wi,he){var width=wi;var valid=document.getElementById('ctl00_ContentPlaceHolder1_ddlcharityoptions').options[document.getElementById('ctl00_ContentPlaceHolder1_ddlcharityoptions').selectedIndex].value;var height=he;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var windowFeatures="width="+width+",height="+height+",status,resizable,scrollbars=yes,left="+left+",top="+top+"screenX="+left+",screenY="+top;myWindow=window.open(url+valid,"subWind",windowFeatures);}
function filecheck(id)
{if(document.getElementById(id).value=="")
{alert('Please select file.');return false;}
return true;}
function stripQuerystring()
{return window.location.protocol+"//"
+window.location.host+window.location.pathname;alert(window.location.protocol+"//"
+window.location.host+window.location.pathname);}
function setComment(x,ratingid,custid)
{var helpful=document.getElementById("helpful"+x);var nothelpful=document.getElementById("nothelpful"+x);var status=0;if(helpful.checked)
status=1;else
status=0;AddComment(status,ratingid,custid);var str=window.location.href.replace("&review=1","").replace("?review=1","");if(str.indexOf('?')!=-1)
window.location=str+"&review=1";else
window.location=str+"?review=1";return false;}
function AddComment(status,ratingid,custid)
{var str,filename,url;var xmlHttp=null
if(typeof window.ActiveXObject!='undefined')
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
else
{xmlHttp=new XMLHttpRequest();}
filename='/RemoteCall.aspx?Comment=1&Status='+status+'&RatingID='+ratingid+'&CustomerID='+custid;var url=filename;xmlHttp.open("GET",url,false);xmlHttp.send(null);if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
{return true;}}
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
} 

function openCenteredWindowDesc(url,wi,he){var width=wi;var height=he;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var windowFeatures="width="+width+",height="+height+",status,resizable,scrollbars=yes,left="+left+",top="+top+"screenX="+left+",screenY="+top;myWindow=window.open(url,"subWind",windowFeatures);}
