    /***************************************************************** 
    *   
    *   This is the source code for the Menu Bar function.
    *  
    ******************************************************************/ 


//A simple javascript function to warn customers when they press submit on the form if it has been left blank 

function formValidation(form){
if(notEmpty(form.user)){
if(notEmpty(form.pass)){
return true;
}
}
return false;
}
function notEmpty(elem){
var str = elem.value;
if(str.length == 0){
alert("You must fill in Both your Username and Password before Login");
return false;
} else {
return true;
}
}

    /***************************************************************** 
    *   
    *   This is the source code for the Disableing Right Click function
    *   
    ******************************************************************/ 

var message="I'm sorry, The Right click option on your mouse has been disabled. Website Designs and Content are copyrighted materials.....";


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")

    /***************************************************************** 
    *   
    *   This is the source code for the Image Preload function
    *   
    ******************************************************************/ 

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];}}
}

    /***************************************************************** 
    *   
    *   and the Image Mouse Over Functions
    ******************************************************************/ 


	if (document.images) {
		kitchen = new Image
		bathroom = new Image
		tiling = new Image
		honda5 = new Image
		kitchen1 = new Image

		kitchen.src = "images/kitchen.gif"
		bathroom.src = "images/bathroom.gif"
		tiling.src = "images/tiling.gif"
		honda5.src = "images/honda5.gif"
		kitchen1.src = "images/kitchen1.gif"
	}
	else {
		kitchen = ""
		bathroom = ""
		tiling = ""
		honda5 = ""
		honda1 = ""
		document.imageField = ""
	}

