<!--
// User can only enter numbers in the quantity box
 function numbersonly(e){
        var unicode=e.charCode? e.charCode : e.keyCode
        if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
        if (unicode<48||unicode>57) //if not a number
            return false //disable key press
        }
    }
	
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function GP_popupConfirmMsg(msg) { //v1.0
  document.MM_returnValue = confirm(msg);
}

function P7_swapClass(){ //v1.4 by PVII
 var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}

function qSwapClass(id,qClass,qIgnore,toggle){ //v1.4 byKenman

	if (toggle == 'y') {
		if (document.all[id].className == qClass) {
			document.all[id].className = qIgnore;
		} else {
 			document.all[id].className=qClass;
		}
	} else {
		if (document.all[id].className != qIgnore) {
			document.all[id].className=qClass;
		}
	}
}

function qq_Pager(qShow, qPager) {
this.document.location = qPager;
}

function toggleVisibility(id, sArrowName) {
	var buttOn = "/common/images/SQexpand.gif";
	var buttOff = "/common/images/SQcollapse.gif";

	if (navigator.appName == "Netscape") {
		//confirm("getElementById");
        document.getElementById(id).style.visibility =(document.getElementById(id).style.visibility == "show")?"hidden":"show";
        document.getElementById(id).style.display = (document.getElementById(id).style.display == "block")?"none":"block";
        document.getElementById(sArrowName).src = (document.getElementById(sArrowName).src == buttOff)?buttOn:buttOff;
    } else {
        if (document.layers) {
			//confirm("layers");
            document.layers[id].visibility = (document.layers[id].visibility == "visible")?"hidden":"visible";
            document.layers[id].display = (document.layers[id].display == "block")?"none":"block";
        } else {
            if (document.all) {
				//confirm("document.all");
                document.all[id].style.visibility = ((document.all[id].style.visibility == "visible")?"hidden":"visible");
                document.all[id].style.display =  ((document.all[id].style.display == "block")?"none":"block");
            }
        }
    }
}


function showText() {
obj = document.getElementById("mydiv");
obj.style.display == "block" ? obj.style.display = "none" : obj.style.display = "block";
}



//-->
