function OpenLoginDiv()
{if(document.getElementById('divprice').style.display=='none')
{OpenCloseDiv(document.getElementById('divprice'),58,true);}
else
{OpenCloseDiv(document.getElementById('divprice'),null,false);}
return false;}
function OpenCloseDiv(div,maxheight,IsOpen)
{if(IsOpen)
{div.style.height="1px";div.style.display="";}
div.style.overflow="hidden";var ptr;if(IsOpen)
{ptr=setInterval("ExpandDiv()",10);}
else
{ptr=setInterval("CollapseDiv()",10);}
ExpandDiv=function()
{if(parseInt((div.style.height))<=maxheight)
{if(ptr!=null)
{div.style.height=(parseInt(div.style.height)+3)+"px";}}
else
{clearInterval(ptr);ptr=null;}}
CollapseDiv=function()
{if(parseInt((div.style.height))>=2)
{if(ptr!=null)
{div.style.height=(parseInt(div.style.height)-3)+"px";}}
else
{div.style.display="none";clearInterval(ptr);ptr=null;}}}
function open_info()
{window.open('web/chatinfo.php','webim','toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');}
function open_chat_room()
{if(navigator.userAgent.toLowerCase().indexOf('opera')!=-1&&window.event.preventDefault)
window.event.preventDefault();this.newWindow=window.open('web/client.php?locale=en','webim','toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;}
function show_main_menu_header()
{if(document.getElementById('main_menu_header'))
document.getElementById('main_menu_header').style.display='';}
function close_main_menu_header()
{if(document.getElementById('main_menu_header'))
{document.getElementById('main_menu_header').style.display='none';}}
function show_output(var1)
{document.getElementById(var1).style.display='block';}
function HideOutput(var1)
{document.getElementById(var1).style.display='none';}
dn="www.spendwisor.com";lang="en";tpt="opaque";vrsn_style="WW";splash_url="https://trustsealinfo.verisign.com";seal_url="https://seal.verisign.com";u1=splash_url+"/splash?form_file=fdf/splash.fdf&dn="+dn+"&lang="+lang;u2=seal_url+"/getseal?at=0&sealid=0&dn="+dn+"&lang="+lang;var sopener;function vrsn_splash(){if(sopener&&!sopener.closed){sopener.focus();}else{tbar="location=yes,status=yes,resizable=yes,scrollbars=yes,width=560,height=500";var sw=window.open(u1,'VRSN_Splash',tbar);if(sw){sw.focus();sopener=sw;}}}
var ver=-1;var v_ua=navigator.userAgent.toLowerCase();var re=new RegExp("msie ([0-9]{1,}[\.0-9]{0,})");if(re.exec(v_ua)!==null){ver=parseFloat(RegExp.$1);}
var v_old_ie=(v_ua.indexOf("msie")!=-1);if(v_old_ie){v_old_ie=ver<5;}
function v_mact(e){var s;if(document.addEventListener){s=(e.target.name=="seal");if(s){vrsn_splash();return false;}}else if(document.captureEvents){var tgt=e.target.toString();s=(tgt.indexOf("splash")!=-1);if(s){vrsn_splash();return false;}}
return true;}
function v_mDown(event){if(document.addEventListener){return true;}
event=event||window.event;if(event){if(event.button==1){if(v_old_ie){return true;}
else{vrsn_splash();return false;}}else if(event.button==2){vrsn_splash();return false;}}else{return true;}}
if((v_ua.indexOf("msie")!=-1)&&(ver>=7)){var plat=-1;var re=new RegExp("windows nt ([0-9]{1,}[\.0-9]{0,})");if(re.exec(v_ua)!==null){plat=parseFloat(RegExp.$1);}
if((plat>=5.1)&&(plat!=5.2)){}}
if(document.addEventListener){document.addEventListener('mouseup',v_mact,true);}
else{if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=v_mact;}}
function v_resized(){if(pageWidth!=innerWidth||pageHeight!=innerHeight){self.history.go(0);}}
if(document.layers){pageWidth=innerWidth;pageHeight=innerHeight;window.onresize=v_resized;}
var xmlhttp;function GetXmlHttpObject()
{if(window.XMLHttpRequest)
{return new XMLHttpRequest();}
if(window.ActiveXObject)
{return new ActiveXObject("Microsoft.XMLHTTP");}
return null;}
var proid,ppid;function gotosellitem(adminid,prodid,pids,ptypes,id)
{proid=prodid;ppid=id;document.getElementById("sellitem"+ppid+proid).innerHTML='<img src="images/ajax-loader.gif">';xmlhttp=GetXmlHttpObject();var url="phpAjax.php?act=checkitem&productid="+prodid+"&admin_id="+adminid+"&supplier_parent_id="+pids+"&supplier_type_id="+ptypes;xmlhttp.onreadystatechange=stateChanged_item;xmlhttp.open("GET",url,true);xmlhttp.send(null);}
function stateChanged_item()
{if(xmlhttp.readyState==4){if(xmlhttp.responseText!=1)
document.getElementById("sellitem"+ppid+proid).innerHTML=xmlhttp.responseText;else
self.location="supplierinterface/sell_item.php?pID="+proid;}}
function open_pay()
{window.open('https://www.paypal.com/ae/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');}
function frm_submit()
{document.quick_find_header.submit();}
