
// will check the form to see if the user has made an entry into the text field.


var isNav4, isIE4
var range = ""
var styleObj = ""
if (navigator.appVersion.charAt(0) == "4") {
	if (navigator.appName == "Netscape") {
		isNav4 = true
		insideWindowWidth = window.innerWidth
	} else {
		isIE4 = true
		range = "all."
		styleObj = ".style"
	}
}

function checkForm(){ 
	var msgR = ""
	var words = document.searchForm.kw.value;
	if (words == ""){
		msgR = msgR + "You have not entered a search word,\nPlease enter a word and try again.";
		alert(msgR);
		return false;
	}
	else if(words.length < 3){
		msgR = msgR + "Please enter a word greater then 2 characters";
		alert(msgR);
		return false;
	} 
	//else if(need to check for +-"",&%?) {
	//}
	else {
		return true;
	}
}

// Simple function to add the text box to the screen depending on the tpe of browser used.
function addTextBox(){
	if(navigator.appName == "Netscape"){
		document.write("&nbsp;&nbsp;<INPUT TYPE=\"TEXT\" NAME=\"kw\" size=\"5\" >");
	} else {
		document.write("<INPUT TYPE=\"TEXT\" NAME=\"kw\" size=\"10\">");
	}
}

function showProduct(name,x) {
var output = ""
var title = new String(name)
var newWind
var iwidth = 0
var iheight = 0
var image = new Image()
image.src = "/images" + x + ".jpg";

// in some cases the image might not yet be loaded so we we give the window
// a default size.
	iheight = 530;
	iwidth = 500;	
	var sp = " ";
	var winAdd = new String("/picsapp.asp?title="+ title + "&image=" + x);
	winAdd.replace(" ", "%20")

    
   	newWind = window.open(winAdd,"picWindow","HEIGHT="+iheight+" WIDTH="+iwidth+" ");

}


function loadClientFrame(x){
	window.open(x,"picWindow","HEIGHT=500,WIDTH=700, SCROLLBARS=YES, RESIZABLE=YES");
}

//Image Pre-loader
function loadImages() {
	        img1on = new Image(150,15);      
            img1on.src = "/images/buttons/homebuto.jpg"; 
            img2on = new Image(150,15); 
            img2on.src = "/images/buttons/aboutbuto.jpg";  
            img3on = new Image(150,15);
            img3on.src = "/images/buttons/prodbuto.jpg";
            img4on = new Image(150,15);
            img4on.src = "/images/buttons/conbuto.jpg";
            img5on = new Image(150,15);
            img5on.src = "/images/buttons/fbbuto.jpg";


            img1off = new Image(150,15); 
            img1off.src = "/images/buttons/homebut.jpg"; 
            img2off = new Image(150,15);          
            img2off.src = "/images/buttons/aboutbut.jpg"; 
            img3off = new Image(150,15);
            img3off.src = "/images/buttons/prodbut.jpg";
            img4off = new Image(150,15);
            img4off.src = "/images/buttons/conbut.jpg";
            img5off = new Image(150,15);
            img5off.src = "/images/buttons/fbbut.jpg";
}
//function for the mouse over on the buttons in the menu table
function imgOn(imgName){
     if (document.images) {
        document[imgName].src = eval(imgName + "on.src");
     }
}
//function for the mouse out on the buttons in the menu table
function imgOff(imgName){
    if (document.images) {
         document[imgName].src = eval(imgName + "off.src");
    }
}
function popupURL()

{

newwindow = window.open( "isoimportant.html","HI","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width=370,height=325")

}


