
function contactUs(signature) {
  win = window.open("contactus.php?signature="+signature,"_contact_catalog2003","left=17,top=17,width=400,height=250,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  win.focus();
}

function fmailform(signature) {
  window.open("sendcatalog.htm?signature="+signature,"_send_catalog2003","left=17,top=17,width=400,height=285,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
}  

function sendpage(image, signature) {
  window.open("sendpage.htm?signature="+signature+"&image="+image,"_send_page_catalog2003","left=17,top=17,width=400,height=285,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
}  

function showBigPrint(parameters) {
  win = window.open("bigprint.htm?"+parameters,"_big_print_catalog2003","width=635,height=600,left=17,top=17,statusbar=no,toolbar=no,scrollbars=yes,navbar=no");
  win.focus();
}

function getParameter(str, name) {
  var res = "";
  if (str.indexOf("?")!=-1)
  {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1)
    {
      if (str.indexOf("&", str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf(name)+name.length+1, str.indexOf("&"))
	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
	}
  }
  return res;
}


function changeViewer(size,action,ind) {
  if (typeof(signature)=="undefined")
    signature = top.company[4];

  switch (size) {
    case "0":
      width = 664;
      height = 410;
      page = "bindermini.htm";
      break;
    case "1":
      width = 783;
      height = 480;
      page = "bindermedi.htm";
      break;
    case "2":
      width = 955;
      height = 580;
      page = "bindermaxi.htm";
      break;  
  }
  url = "frame.php?signature="+signature+"&page="+page+"&ac="+action+"&ind="+ind;
  top.window.resizeTo(width+20,height+60);
  top.window.location.href = url;
}


function showBig(parameters) {
  win = window.open("framebig.php?signature="+top.company[4]+"&"+parameters,"_big_catalog2003","width=635,height=600,left=17,top=17,statusbar=no,toolbar=no,scrollbars=yes,navbar=no");
  win.focus();
}

function MM_findObj(n, d) { //v4.01
  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 MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function addBookmark(title,url) {
  if (window.sidebar) { 
    window.sidebar.addPanel(title, url,""); 
  }
  else if( document.all ) {
    window.external.AddFavorite( url, title);
  }
  else if( window.opera && window.print ) {
    return true;
  }
}

function fSaveCat() {
  wSV = window.open("fsave.htm","wSV","width=400,height=150,statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  wSV.focus();
}  

function website(url) {
  if (url!='') {
    win = window.open(url,"_blank");
    win.focus();
  }
}

 var message = 
    "   For More Information About Us   " + String.fromCharCode(13,10)
  + " Call 800 741-2861 or Visit Us at: " + String.fromCharCode(13,10)
  + "      www.clearimaging.com         " + String.fromCharCode(13,10)
  + "   All Source Code Copyrighted     " + String.fromCharCode(13,10)
  + "    by Clearimaging.com © "+(new Date()).getFullYear();
  
function clickIE4(){
  if (event.button==2){
    alert(message);
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
      alert(message);
      return false;
    }
  }
}

if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false");


