    /***************************************************************** 
    *   
    *   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) {
		overall = new Image
		front = new Image
		pool = new Image
		side = new Image
		bedroom = new Image
		twinroom = new Image
		bath = new Image
		kitchen = new Image
		living = new Image
		sea = new Image

		overall.src = "images/overall.gif"
		front.src = "images/front.gif"
		pool.src = "images/pool.gif"
		side.src = "images/side.gif"
		bedroom.src = "images/bedroom.gif"
		twinroom.src = "images/twinroom.gif"
		bath.src = "images/bath.gif"
		kitchen.src = "images/kitchen.gif"
		living.src = "images/living.gif"
		sea.src = "images/sea.gif"
	}
	else {
		overall = ""
		front = ""
		pool = ""
		side = ""
		bedroom = ""
		twinroom = ""
		bath = ""
		kitchen = ""
		living = ""
		sea = ""
		document.imageField = ""
	}

