// JavaScript Document
    function ValidateQuickQ() {
        msg = " " ;
        document.MM_returnValue = true ;
        doc = document.quickq ;
		msg = "The following error have should be corrected in your form:"  ;
		minlength = msg.length ;
	    if (validString(doc.name) == 0) {
            msg += "\n - Please enter a name" ;
		}
	    if (validEmail(doc.email) == 0) {
		    msg += "\n - Please provide an e-mail address" ;
        }
	    if (validPhone(doc.phone) == 0) {
		    msg += "\n - Please provide a phone number" ;
        }
	    if (validString(doc.suburb) == 0) {
		    msg += "\n - Please provide a Suburb" ;
        }
	    if (validSelect(doc.budget) == 0) {
		    msg += "\n - Please provide a type" ;
        }		
        if (msg.length > minlength) {
            document.MM_returnValue = false ;
	        alert(msg) ;
		}
	    return document.MM_returnValue ;
	}
	function ValidateSampler() {
        msg = " " ;
        document.MM_returnValue = true ;
        doc = document.sampler ;
		msg = "The following error have should be corrected in your form:"  ;
		minlength = msg.length ;
	    if (validString(doc.sname) == 0) {
            msg += "\n - Please enter a name" ;
		}
	    if (validEmail(doc.semail) == 0) {
		    msg += "\n - Please provide an e-mail address" ;
        }
	    if (validPhone(doc.sphone) == 0) {
		    msg += "\n - Please provide a phone number" ;
        }
	    if (validString(doc.ssuburb) == 0) {
		    msg += "\n - Please provide a Suburb" ;
        }
        if (msg.length > minlength) {
            document.MM_returnValue = false ;
	        alert(msg) ;
		}
	    return document.MM_returnValue ;
	}
sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function addLoadEvent(func) {   
    var oldonload = window.onload;   
    if (typeof window.onload != 'function') {   
        window.onload = func;   
    } else {   
        window.onload = function() {   
            if (oldonload) {   
                oldonload();   
            }   
            func();   
        }   
    }   
}   

