var IE=(navigator.appName == "Microsoft Internet Explorer")?  true: false;
var NS=(navigator.appName == "Netscape")? true: false;

var nPlat = navigator.platform;
var isMac=(nPlat.match(/mac/i))?1:0;

function printMe() {
if(IE && isMac) {
alert("Sorry, this function is not supported on your browser. \n Please select Print from your file menu.")
//PrintBrowserWindow
} else {
self.focus();
self.print();
 }
 return false;
}
function Is() {
    agent  = navigator.userAgent.toLowerCase();
    plat = navigator.platform.toLowerCase();
    this.mac   = (plat.indexOf('mac')   !=   -1);
    this.win   = (plat.indexOf('win')   !=   -1);
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) &&
                 ((agent.indexOf('spoofer')   ==   -1) &&
                 (agent.indexOf('compatible') ==   -1)));
    this.ns4   = (this.ns && (this.major      ==    4));
    this.ns6   = (this.ns && (this.major      >=    5));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      < 4));
    this.ie4   = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.0")   ==   -1));
    this.ie5   = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.5")   !=   -1));
    this.ie6   = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}
/* ---------------------------------------------------------------------- */
// Global variables
var is = new Is();
var StoreWindow = null;
var proc= '<span style="font-family:sans-serif;font-size:16pt;color:#3638bd">Processing'
+ ' - please wait</span>';
/* ---------------------------------------------------------------------- */
function ST_note(theURL,uWidth,uHeight,sbar,res,locH,locV,StoreWindow) {
var attr='scrollbars='+sbar+',resizable='+res+',width=' + uWidth + ',height=' +uHeight
if(!window.StoreWindow || window.StoreWindow.closed) {
if(is.mac && is.ie) {
StoreWindow = window.open(theURL,StoreWindow,attr);
StoreWindow.focus();
} else {
StoreWindow = window.open('',StoreWindow,attr);
StoreWindow.moveTo(locH,locV)
StoreWindow.document.close();
StoreWindow.document.write(proc);
StoreWindow.focus()
StoreWindow.location.href = (theURL)
} // end else
} else {
StoreWindow.location.href = (theURL)
StoreWindow.focus()
}
return StoreWindow;
}

/* ---------------------------------------------------------------------- */
function xMM_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;
}
