function OpenRegister(page) {
OpenWin = this.open(page, "JobWindow", "width=600,height=600,toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes");
}

function searchVal() {
	if (document.forms['search'].srch.value=='Search'){
		alert('Please enter a search criterion.');
	}else{ 
		document.forms.search.submit();
	}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) {
  	with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage;
		}
	}
  }else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value != '') {
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
  }
}

function prepare( img ) {
    if (!img.preload) {
        img.preload = new Image();
	    img.preload.src = swap( img.src, "_over" ); 
	}
}

function doRollOver( img ) {     
    img.lastsrc = img.src;     
    img.src = swap( img.src, "_over" );    
}

function doRollOut( img ) { 
    if (img.lastsrc) {
        img.src = img.lastsrc;
    }
}

function swap( img, newstate ) {
    dot = img.lastIndexOf('.');    
    suffix = img.substring(dot);
    prefix = img.substring(0,dot);
    state = -1;
    if (prefix.lastIndexOf("_off") == prefix.length-4) { state = 4; }
    if (prefix.lastIndexOf("_over") == prefix.length-4) { state = 5; }
    if (prefix.lastIndexOf("_on") == prefix.length-4) { state = 3; }
    if (state != -1) {
        return prefix.substring(0,prefix.length-state)+"_over"+suffix;        
    } else { 
        return img;
    }
}
