<!--

var bo_ns_id = 0;

function startIeFix(){
if(isIE()){
document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
}
}

function endIeFix(){
if(isIE()){
document.write('</div>');
var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
var theCode = theObject.innerHTML;
theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
document.write(theCode);
}
}

function isIE(){
// only for Win IE 6+
// But not in Windows 98, Me, NT 4.0, 2000
var strBrwsr= navigator.userAgent.toLowerCase();
if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){
return false;
}
if(strBrwsr.indexOf("win98") > -1 ||
strBrwsr.indexOf("win 9x 4.90") > -1 ||
strBrwsr.indexOf("winnt4.0") > -1 ||
strBrwsr.indexOf("windows nt 5.0") > -1)
{
return false;
}
return true;
}else{
return false;
}
}

var win=null;
function open_win(mypage,myname,w,h){
var pos="center";
var infocus="front";
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}

function newsletter()
{
 resultsWindow = window.open("/blank.php","news","menubar=no,status=no,scrollbars=yes,resizable=yes,width=400,height=200");
 resultsWindow.focus();
}

function new_win(url)
{
 resultsWindow = window.open(url,"news","menubar=no,status=no,scrollbars=yes,resizable=yes,width=600,height=300");
 resultsWindow.focus();
}

function preview_template(kvo)
{
 var image='http://www.cheapestwebsoftware.com/template_preview.php?id='+kvo;
 resultsWindow = window.open(image,"template","menubar=no,status=no,scrollbars=yes,resizable=yes,addressbar=no,width=950,height=800");
 resultsWindow.focus();
}

function add_to_cart(tip,pid)
{
var xmlhttp =  new XMLHttpRequest();
xmlhttp.open('POST', 'cart.html', true);
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlhttp.send('addtocart=&t='+tip+'&p='+pid+'&nosupport=1');
}

function add_template_to_cart(pid)
{
add_to_cart(4,pid);
document.getElementById('addcart_'+pid).innerHTML='<strong>Added!</strong>';
}
//-->