/* Sub Window Script */

function openW(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=yes,toolbar=yes,location=yes,directories=no,scrollbars=yes,status=yes,resizable=yes");}



function openWn(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=no,toolbar=no,location=no,directories=no,scrollbars=no,status=no,resizable=no");}



function openWs(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=yes,resizable=yes");}



function openP(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=no,toolbar=no,location=no,directories=no,scrollbars=yes,status=no,resizable=yes");}





/* Rollover Border Script */

function borderize(what,color){
what.style.borderColor=color
}

function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"#006699")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"#006699")
}
}
}

function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"#ffffff")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"#ffffff")
}
}
}
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}



	
/* Rollover Cell Script */
	
function over_effect(e,state){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
source4.style.borderStyle=state
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
source4.style.borderStyle=state
}
}
}



	
/* Form Script */


var alreadysubmitted = false;
var isNS6=((navigator.userAgent.toLowerCase().indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=5));
var isNS4=(document.layers)?1:0;
var isIE4=(document.all)?1:0;
var isMAC=(navigator.appVersion.indexOf("Macintosh") > -1);
var isLinux=(navigator.appVersion.toUpperCase().indexOf("LINUX") > -1);
var quesNum = 0;
var notClicked = false;

function check() {
var OValue = "";
if (alreadysubmitted) return false;



// Make sure the comment is not longer than 1000 chars



if (document.Comments.value.length>1000) {
document.Comments.select();
document.Comments.focus();
alert('Comments may not exceed 1000 characters. Please adjust and resubmit.');
return false;
	}

// Checking the OverAll Rating

for (i=0; i<5; i++) {
if (document.overall[i].checked=="1") {
OValue=document.overall[i].value;
}
}
if (OValue =="") {	
alert('Please choose an overall rating before submitting.');
return false;
} else {

// Make the comment blank is not modified

if(!notClicked)document.Comments.value='';
alreadysubmitted = true;		
return true;
}
}



/* Copyright Script */

function copyrightDate(){
wriYr = new Date
var doYr = wriYr.getFullYear()
document.write("Copyright &#169 1999 - " + doYr + " <br>California Citrus Mutual All Rights Reserved ")
}




/* Sierra design Script */

function sd(){
document.write("Website Assistance Provided By <br> Sierra design")
}




/* save Script */



