function ExpandCollapse(id) { if(id=="plus") { document.getElementById('plus').style.display = "block"; document.getElementById('minus').style.display = "none"; } else { document.getElementById('minus').style.display = "block"; document.getElementById('plus').style.display = "none"; } } function searchCheck() { var str = ''; if (document.frm.ss.value=='' || document.frm.ss.value=='Search Products/Services') { alert("Please enter some keyword to search."); document.frm.ss.focus(); document.frm.ss.value=''; return false; } if (document.frm.ss.value.length < 3) { alert("Please Enter atleast 3 character"); document.frm.ss.focus(); document.frm.ss.value=''; return false; } if (document.frm.ss.value) { var str1; str1 = document.frm.ss.value.replace(/^\s+/g, '').replace(/\s+$/g, ''); str1 = str1.replace(/[^a-zA-Z0-9+ ]/g, ' '); str1 = str1.replace(/\+/g, ' '); str1 = str1.replace(/\s+/g, '+'); str += 'ss='+str1; window.location = "http://www.pewi-fans.com/search.html?"+str; return false; } } function searchClear() { if (document.frm.ss.value=='Search Products/Services') { document.frm.ss.value=''; } } function settext() { if (document.frm.ss.value=='') { document.frm.ss.value='Search Products/Services'; } } function settextvalue() { document.frm.ss.value='Search Products/Services'; } function setDwsCookie(name,value) { if(value.length>0) document.cookie=name+"="+escape(value)+";" } var persistmenu="yes" //"yes" or "no". Make sure each DIV content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc) var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only if (document.getElementById){ //DynamicDrive.com change document.write('\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("masterdiv").getElementsByTagName("div"); //DynamicDrive.com change if(el.style.display != "inline"){ //DynamicDrive.com change for (var i=0; i 40){var c=productName.substring(0,40);c=c + "...";productName=c;}var nAgt=navigator.userAgent; var patt=/Opera/; if(patt.test(nAgt)) { imagediv.className="don"; document.getElementById('loadimg').className="doff"; }imagediv.innerHTML=''+productName+'';prname.innerHTML=productName;} function trustseal(path){imagediv.innerHTML='';divscroll.style.width='550px';blwtbl.style.height="600px";mx.className="doff";mx1.className="doff";} function NewWinIM(mypage,myname,compname) { //alert(compname); mx=document.getElementById('mx');mx1=document.getElementById('mx1'); imagediv=document.getElementById('imagediv'); var embedcode=''; var arr=mypage.split('/'); if (mypage.search(/heavy\#\#/) != -1){ mypage = mypage.replace('heavy##',''); var hw='height=350,width=370'; var embedcode = ''; } else { var hw='height=350,width=370'; var embedcode = ''; } //alert(imagediv.class); prname.innerHTML=compname; document.getElementById('loadimg').className="doff"; imagediv.className="don"; imagediv.innerHTML=embedcode; divscroll.style.width='400px'; blwtbl.style.height='200px'; document.getElementById('divscroll').style.height='330px'; mx.className="doff"; mx1.className="doff"; imagediv.className="don"; } function callfree1(glusr_id,modid) {if(glusr_id !='' && modid != ''){var url = '/cgi/datetime.pl?supId='+glusr_id+'&modid='+modid;http_request = false;if(window.XMLHttpRequest){http_request = new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try {http_request = new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{http_request = new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}http_request.onreadystatechange = function() {alertContents(http_request); };http_request.open('GET', url, true);http_request.send(null);}else{alert('There is some technical problem.Please try after some time.');}} function alertContents(http_request) {if (http_request.readyState == 4) {if (http_request.status == 200){var my_result = http_request.responseText;if(my_result == 1) {alert('There is some technical problem.Please try after some time.');}else {var strarr = my_result.split("##");comp_nm = strarr[1];comp_nm = comp_nm.replace(/\\'/g,"'");comp_nm = escape(comp_nm);comp_nm='&supCompName='+comp_nm;callpath= strarr[0]+comp_nm;document.getElementById('imagediv').innerHTML='';document.getElementById('divscroll').style.width='730px';document.getElementById('divscroll').style.height='335px';}}}} function loadimg(){document.getElementById('loadimg').className="doff";imagediv.className="don";if(document.getElementById('bigimg').height > 500 || document.getElementById('bigimg').width > 500){max();}} function loadimg1(){document.getElementById('loadimg').className="doff";imagediv.className="don";}document.write('


Loading...
'); isIE=document.all; isNN=!document.all&&document.getElementById; isN4=document.layers; isHot=false; function ddInit(e){ topDog=isIE ? "BODY" : "HTML"; whichDog=isIE ? document.all.message2 : document.getElementById("message2"); hotDog=isIE ? event.srcElement : e.target; while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){ hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;} if (hotDog.id=="titleBar"){ offsetx=isIE ? event.clientX : e.clientX; offsety=isIE ? event.clientY : e.clientY; nowX=parseInt(whichDog.style.left); nowY=parseInt(whichDog.style.top); ddEnabled=true; document.onmousemove=dd;}} function dd(e){ if (!ddEnabled) return; whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx+'px'; whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety+'px'; return false;} function ddN4(whatDog){ if (!isN4) return; N4=eval(whatDog); N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP); N4.onmousedown=function(e){ N4.captureEvents(Event.MOUSEMOVE); N4x=e.x; N4y=e.y;} N4.onmousemove=function(e){ if (isHot){ N4.moveBy(e.x-N4x,e.y-N4y); return false;}} N4.onmouseup=function(){ N4.releaseEvents(Event.MOUSEMOVE);}} function hideMe(){ if (isIE||isNN) whichDog.style.visibility="hidden"; else if (isN4) document.message2.visibility="hide";} function showMe(){ if (isIE||isNN) whichDog.style.visibility="visible"; else if (isN4) document.message2.visibility="show";} function fll() { document.body.onmousedown=ddInit; } document.onmouseup=Function("ddEnabled=false"); function keyDown1(e) {var n=(window.Event) ? e.which : e.keyCode;if(n==9 && p_blo.className=="don"){return false;}else if(n==32 && p_blo.className=="don"){return false;}else if(n==27 && p_blo.className=="don"){blowup_hide();}if((n==37 && p_blo.className=="don") || (n==38 && p_blo.className=="don")){if (imgid==1){return false;}previousimg();}else if((n==39 && p_blo.className=="don") || (n==40 && p_blo.className=="don")){if (imgid==dataref1.length){return false;} nextimg();return false;}} function keyDown(e) {var n = (window.Event) ? e.which : e.keyCode; if(n==9 && document.getElementById('message2').className=="don") { return false; } else if(n==32 && document.getElementById('message2').className=="don") { return false; } else if(n==27 && document.getElementById('message2').className=="don") { blowup_off_js(); } } //dynamiclayout effect start var myWidthnew =""; // dynamicLayout /*function dynamicLayout(){ if( typeof( window.innerWidth ) == 'number' ) { myWidthnew = window.innerWidth; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { myWidthnew = document.documentElement.clientWidth; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidthnew = document.body.clientWidth; } if (document.getElementById('container1')) { if (myWidthnew > 1259) { document.getElementById('container1').style.width = "1259px"; document.getElementsByTagName('body')[0].className = "home-bg"; //this line for body bg } else { document.getElementById('container1').style.width = ""; document.getElementsByTagName('body')[0].className = "bg"; //for body body bg } } } dynamicLayout(); function addEvent( obj, type, fn ){ if (obj.addEventListener){ obj.addEventListener( type, fn, false ); } else if (obj.attachEvent){ obj["e"+type+fn] = fn; obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } obj.attachEvent( "on"+type, obj[type+fn] ); } } addEvent(window, 'load', dynamicLayout); addEvent(window, 'resize', dynamicLayout); */ function tc(id) { var divcount = document.getElementById('main').getElementsByTagName('div').length; for(var i =1; i<=divcount; i++) { document.getElementById('tb'+i).className="off"; } document.getElementById(id).className="on"; document.getElementById(id).className="on"; } //dynamiclayout effect end function FrmValue(FieldName) { if(FieldName.value == 'First Name' || FieldName.value == 'Your Name' ) { FieldName.value = ''; FieldName.className='txtf'; } else { FieldName.className='txtf'; } } function FrmValue1(FieldName) { if(FieldName.value == '') { FieldName.value = 'First Name'; FieldName.className='txtfa'; } else { FieldName.className='txtf'; } } function FrmValue2(FieldName) { if(FieldName.value == 'Last Name' || FieldName.value == 'Your Name' ) { FieldName.value = ''; FieldName.className='txtf'; } else { FieldName.className='txtf'; } } function FrmValue3(FieldName) { if(FieldName.value == '') { FieldName.value = 'Last Name'; FieldName.className='txtfa'; } else { FieldName.className='txtf'; } } function FrmValue4(FieldName) { if(FieldName.value == 'Area Code' || FieldName.value == 'Phone or Mobile' ) { FieldName.value = ''; FieldName.className='txtf'; } else { FieldName.className='txtf'; } } function FrmValue5(FieldName) { if(FieldName.value == '') { FieldName.value = 'Area Code'; FieldName.className='txtfa'; } else { FieldName.className='txtf'; } } function FrmValue6(FieldName) { if(FieldName.value == 'Phone Number' || FieldName.value == 'Phone or Mobile' ) { FieldName.value = ''; FieldName.className='txtf'; } else { FieldName.className='txtf'; } } function FrmValue7(FieldName) { if(FieldName.value == '') { FieldName.value = 'Phone Number'; FieldName.className='txtfa'; } else { FieldName.className='txtf'; } } function FrmValue8(FieldName) { if(FieldName.value == 'Mobile / Cell Phone Number' || FieldName.value == 'Phone or Mobile' ) { FieldName.value = ''; FieldName.className='txtf'; } else { FieldName.className='txtf'; } } function FrmValue9(FieldName) { if(FieldName.value == '') { FieldName.value = 'Mobile / Cell Phone Number'; FieldName.className='txtfa'; } else { FieldName.className='txtf'; } } function fg_hideform(formdiv_id,bg_div_id) { var formdiv = document.getElementById(formdiv_id); formdiv.style.display="none"; var bgdiv = document.getElementById(bg_div_id); bgdiv.style.display="none"; } function openchildts1(thisurl) { browserName = navigator.appName; browserVer = parseInt(navigator.appVersion); condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) || ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ; if (condition == true ) CanAnimate = true; else CanAnimate = false; if ( CanAnimate ) { var windowHeight; var windowWidth; var windowTop; var windowLeft; if (browserName == 'Microsoft Internet Explorer') { windowWidth="550px"; } else { windowWidth="553px"; // windowWidth=(screen.width*(57/100)-200); } windowHeight=(screen.height*(80/100))*0.85; windowTop=(screen.height*(20/100))*0.8; windowLeft=screen.width*(40.2/100); msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,top='+windowTop+',left='+windowLeft+',width='+windowWidth+',height='+windowHeight); msgWindow.focus(); msgWindow.location.href = thisurl; } else { msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=510,height=420'); } }