// JavaScript Document
<!--
sfHover = function() { 
    var sfEls = document.getElementById("menuBarList").getElementsByTagName("UL"); 
    for (var i=0; i<sfEls.length; i++) { 
        sfEls[i].parentNode.onmouseover=function() { 
            this.lastChild.className+=" sfhover"; 
        } 
        sfEls[i].parentNode.onmouseout=function() { 
            this.lastChild.className=this.lastChild.className.replace(new RegExp(" sfhover\\b"), ""); 
        } 
    } 
} 
if (window.attachEvent) window.attachEvent("onload", sfHover); 

var paintingWin=0;
function paintingWindow(URLStr, left, top, width, height){
  if(paintingWin){
    if(!paintingWin.closed) paintingWin.close();
  }
paintingWin = open(URLStr, 'paintingWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function formValidation(form){
if(notEmpty(form.firstName)){
if(notEmpty(form.lastName)){
if(notEmpty(form.email)){
return true;
}
}
}
return false;
}
function notEmpty(elem){
var str = elem.value;
if(str.length == 0){
alert("Please fill in the required fields (*)");
return false;
} else {
return true;
}
}
function confirmation(f) {
	if (confirm('Are you sure you want to delete?')) {
		f.submit();
	} else {
		return false;
	}
}
//-->
