function blockError(errorMessage, url, line){ return true; } window.onerror = blockError; // Browser sniff and CSS output var ie = (document.all) ? true : false; var ie5 if (navigator.appVersion.indexOf("MSIE")!=-1){ temp=navigator.appVersion.split("MSIE") version=parseFloat(temp[1]) if (version<6.0){ var ie5 = true } } var ns = (document.layers) ? true : false; var ns6 = false; if (document.getElementById) { ns6 = true; } function changePage() { // forces a template to pop out of forms if (self.parent.frames.length > 1) self.parent.location=document.location; } function goTo(url){ //redirects a user to a url... used in frameloader. FrameWindow = window.open(url, 'FrameWindow','resizable=yes,width=780,height=500,status=1,menubar=1,scrollbars=auto'); FrameWindow.focus(); } function showArea(object) { // changes the visibility of an object to true if (document.getElementById && document.getElementById(object) != null){ document.getElementById(object).style.display='block';} else if (document.layers && document.layers[object] != null){ document.layers[object].display = 'block';} else if (document.all){ document.all[object].style.display = 'block';} } function hideArea(object) { // changes the visibility of an object to false if (document.getElementById && document.getElementById(object) != null){ document.getElementById(object).style.display='none';} else if (document.layers && document.layers[object] != null){ document.layers[object].display = 'none';} else if (document.all){ document.all[object].style.display = 'none';} return true; } function delayedHideArea(object) { setTimeout("hideArea('" + object + "');", 10); } function showHide(targetName) { if( document.getElementById ) { // NS6+ target = document.getElementById(targetName); } else if( document.all ) { // IE4+ target = document.all[targetName]; } if( target ) { if( target.style.display == "none" ) { target.style.display = "inline"; } else { target.style.display = "none"; } } return true; } function clearFormValue(calling_element) // sets the calling form value to '' { if ( !window.formIsCleared ){ calling_element.value = ''; formIsCleared = true; } } function submitForm(calling_form) // submits a form { calling_form.form.submit(); } function confirmAction(msg){ return confirm(msg) } function openAuction(auctionid){ // Opens an auction in a popup window if(auctionid == '0' || auctionid == ''){ alert('Choose an auction to view it.') }else{ DocWindow = window.open('http://www.bidshares.com/auctions/index.cfm?fuseaction=auctionview&auctionid='+auctionid, 'DocWindow','resizable=yes,width=780,height=500,status=0,menubar=0,scrollbars=1'); } }