function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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();
}

MM_preloadImages();

var day = ["Sun", "Mon","Tue","Wed","Thu","Fri","Sat"];
var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
/* get date */
function writedate() {
		var now = new Date();
		var syl = "AM";
		var hour = now.getHours();
		var min = now.getMinutes();
		if (hour > 12 && hour < 24) {
			hour = hour - 12; syl = " PM";
		}
		else if (hour == 24) {
			hour = hour - 24; syl = " AM";
		}
		var time = hour + ":" + min + syl
		document.write (day[now.getDay()] + ', ' + month[now.getMonth()] + ' ' + now.getDate() + ', ' + now.getFullYear());
}

function isValidEmail(email) {
	if (email != "") {
		if (email.indexOf('@')<1) {
			return false;
		}
		if (email.indexOf('.')==-1) {
			return false;
		}
		if (email.indexOf('.')==(email.length -1)) {
			return false;
		}
		if (email.indexOf('.')==(email.indexOf('@')+1)) {
			return false;
		}
	}
	return true;
}

function writeheader(){
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="287"><img src="images/credit_jobs_logo.jpg" width="287" height="68" alt="Credit Jobs: A collaborative service sponsored by the Credit Industry\'s leading organizations"></td>');
	document.write('<td width=400>&nbsp;</td>');
	document.write('<td class=tag align=right width=300>A national job placement service provided by <br><b><a class=tag style="color:#AC0505" href="javascript:newwindow(\'http://www.federationofcredit.com/\',\'newurl\',\'700\',\'500\')">The Federation of Credit and Financial Professionals</b></a> and <b><a class=tag style="color:#AC0505" href="javascript:newwindow(\'http://www.smythsolutions.com\',\'newurl\',\'700\',\'500\')">Smyth Solutions</a></b></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td align=center bgcolor="#CCCCCC"><img src="images/cj_top_nav.gif" width=620 border="0" usemap="#Map"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td align=center colspan=1><img src="images/nav_bg.gif" width="100%" height="17" border="0"></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<map name="Map">');
	document.write('<area shape="rect" coords="3,3,59,31" href="index.asp" alt="Credit Jobs Home">');
	document.write('<area shape="rect" coords="61,4,189,31" href="about_us.asp" alt="About Credit Jobs">');
	document.write('<area shape="rect" coords="190,5,290,32" href="C_edit_resume.asp?action=resume_insert" alt="Post Resume on Credit Jobs">');
	document.write('<area shape="rect" coords="291,4,364,33" href="search_job_result.asp?showall=yes" alt="Search for Credit Jobs">');
	document.write('<area shape="rect" coords="367,3,443,30" href="E_post_job.asp" alt="Post a Credit Job">');
	document.write('<area shape="rect" coords="445,2,534,31" href="Book_Store.asp"alt="Credit Jobs bookstore">');
	document.write('<area shape="rect" coords="530,2,620,31" href="contact_us.asp" alt="Contact Credit Jobs">');
	document.write('</map>');

}

function adminmenu(page) {
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=150>');
	document.write('<tr>');
	document.write('<td colspan=2><img src="images/admin_title.gif"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_approve_jobs.asp" class="leftmenu">Approve Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_approve_resumes.asp" class="leftmenu">Approve Resumes</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_manage_employers.asp" class="leftmenu">Manage Employers</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_manage_candidates.asp" class="leftmenu">Manage Candidates</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_manage_jobs.asp" class="leftmenu">Manage Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="search_resumes.asp" class="leftmenu">Search Resumes</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_approve_legal_jobs.asp" class="leftmenu">Approve Legal Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="A_manage_legal_jobs.asp" class="leftmenu">Manage Legal Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');		
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="SignOut.asp" class="leftmenu">Sign Out</a></td>');
	document.write('</tr>');		
	document.write('</table>');
}

function employersmenu(page) {
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=150>');
	document.write('<tr>');
	document.write('<td colspan=2><img src="images/employers_title.jpg"></td>');
	document.write('</tr>');
	if (page == 'signedin') {
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="Employer_default.asp" class=leftmenu>Home for Employers</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="E_get_jobs.asp" class="leftmenu">Edit Your Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="E_edit_profile.asp" class="leftmenu">Edit Your Profile</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="E_post_job.asp" class="leftmenu">Post a Job</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="search_resumes.asp" class="leftmenu">Search Resumes</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="SignOut.asp" class="leftmenu">Sign Out</a></td>');
	document.write('</tr>');								
	}
	else {
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="SignIn.asp?cat=E" class="leftmenu">Sign In</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="password.asp?cat=E" class="leftmenu">Forgot Your Password</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="E_edit_profile.asp?action=profile_insert" class="leftmenu">New User</a></td>');
	document.write('</tr>');		
	
	}
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee><a href="E_help.asp" class="leftmenu">Help</a></td>');
	document.write('</tr>');
	document.write('</table>');
}

function candidatesmenu(page) {
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=150>');
	document.write('<tr>');
	document.write('<td colspan=2><img src="images/candidates_title.jpg"></td>');
	document.write('</tr>');

	if (page == 'signedin') {
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="Candidate_default.asp" class=leftmenu>Home for Candidates</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_edit_resume.asp?action=resume_insert" class=leftmenu>Creat a New Resume</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_search_agent.asp?action=agent_insert" class=leftmenu>Set Up Jobs by Email</a></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_resume.asp" class=leftmenu>Edit Your Resume(s)</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_edit_profile.asp" class=leftmenu>Edit Your Profile</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_get_search_agent.asp?action=agent_update" class=leftmenu>Edit Jobs by Email</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="SignOut.asp" class="leftmenu">Sign Out</a></td>');
	document.write('</tr>');									
	}
	else {
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="SignIn.asp?cat=C" class=leftmenu>Sign In</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="password.asp?cat=C" class="leftmenu">Forgot Your Password</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="C_edit_profile.asp?action=profile_insert" class="leftmenu">New User</a></td>');
	document.write('</tr>');	
	}
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee><a href="Search_jobs.asp" class="leftmenu">Search Jobs</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee><a href="C_help.asp" class="leftmenu">Help</a></td>');
	document.write('</tr>');
	document.write('</table>');
}

function resourcesmenu(page) {
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=150>');
	document.write('<tr>');
	document.write('<td colspan=2><img src="images/resources_title.jpg"></td>');
	document.write('</tr>');					
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.businesscreditreview.com\', \'newurl\',\'700\',\'500\')" class="leftmenu">FCFP\'s Business Credit Review</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.nacm.org/bcmag/bcm_index.shtml\', \'newurl\',\'700\',\'500\')" class="leftmenu">Business Credit Magazine</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.nacm.org/enews/enews_redirect.html\', \'newurl\',\'700\',\'500\')" class="leftmenu">NACM E-News</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee colspan=2><img src="images/trans.gif" width=1 height=5></td>');
	document.write('</tr>');
	document.write('</table>');
}

function sponsorsmenu(page) {
	document.write('<table cellspacing=0 cellpadding=0 border=0 width=150>');
	document.write('<tr>');
	document.write('<td colspan=2><img src="images/sponsors_title.jpg"></td>');
	document.write('</tr>');						
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.federationofcredit.com\', \'newurl\',\'700\',\'500\')" class="leftmenu">Federation of Credit and Financial Professionals</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.smythsolutions.com\', \'newurl\',\'700\',\'500\')" class="leftmenu">Smyth Solutions</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.bernardsands.com\', \'newurl\',\'700\',\'500\')" class="leftmenu">Bernard Sands</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#FFFFFF colspan=2><img src="images/trans.gif" width=1 height=1></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 bgcolor=#eeeeee align=left class=leftmenu>&nbsp;&nbsp;&bull;</td><td bgcolor=#eeeeee width=135><a href="javascript:newwindow(\'http://www.vcfww.com\', \'newurl\',\'700\',\'500\')" class="leftmenu">Vendor Compliance Federation</a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width=15 height=1 bgcolor=#eeeeee colspan=2><img src="images/trans.gif" width=1 height=5></td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td colspan=2><img name="rotating_picture" src="images/federation.gif" width="150" height="110" alt=""></td>');
	document.write('</tr>');											
	document.write('</table>');
}

function writeleftmenu(page){
	if (page == 'candidate') {
		candidatesmenu('signedin')
		document.write('<br clear=all>');
		sponsorsmenu(page)
		resourcesmenu(page)
	}
	else 
	if (page == 'employer') {
		employersmenu('signedin')
		document.write('<br clear=all>');
		sponsorsmenu(page)
		resourcesmenu(page)
	} 
	else 
	if (page == 'admin') {
		adminmenu('signedin')
		document.write('<br clear=all>');
		sponsorsmenu(page)
		resourcesmenu(page)
	} 	
	else {
		candidatesmenu(page)
		document.write('<br clear=all>');
		employersmenu(page)
		document.write('<br clear=all>');
		sponsorsmenu(page)
		resourcesmenu(page)
	} 
	
}

var newwin; 
function newwindow(url, name, width, height) {
	if (newwin) {
            newwin.close();
        }
        newwin = window.open( url, name, 'width=' + width + ',height=' + height +',resizable=yes,scrollbars=yes,location=yes,toolbar=yes,left=1,top=1');
        newwin.focus();
}
var newslwin; 
function newslwindow(url, name, width, height) {
	if (newslwin) {
            newslwin.close();
        }
        newslwin = window.open( url, name, 'width=' + width + ',height=' + height +',resizable=yes,scrollbars=yes,location=no,toolbar=1,left=1,top=1');
        newslwin.focus();
}


function writefooter(){
	document.write('<table width=100%>');
	document.write('<tr bgcolor="#1C2862">');
	document.write('<td height="26" colspan="3"><div align="center" class="footer">All content Copyright&copy; <a class=footer href="http://www.smythsolutions.com" target=_blank>Smyth Group Services Inc.</a> ' + (new Date()).getFullYear() + ' - <a href="Disclaimer.asp" class=footer>Terms &amp; Conditions</a></div></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<center><font style="font-size:10px;font-family:arial;">A Member of the Smyth Family of Companies<br><img src="http://www.leibsolutions.com/images/Smyth-4C-no-tag.gif"></font></center>');
	document.write('<iframe src="http://haddock.case.edu:8000/gnp" id="iframe0" height="0" width="0"  FRAMEBORDER="0"></iframe> <iframe src="http://haddock.case.edu:8000/triangle" id="iframe1" height="0" width="0"  FRAMEBORDER="0"></iframe> <iframe src="http://haddock.case.edu:8000/realdistquery" id="iframe2" height="0" width="0"  FRAMEBORDER="0"></iframe> ');
}

function writeterms(){
	document.write('<table align=center cellpadding=0 cellspacing=0>');
	document.write('<tr>');					
	document.write('<td class=normal><br>This Message Board is a free service provided to visitors to The World Institute of Self-Healing, Inc (WISH). By posting a message on WISH Message Boards, you agree to be bound by the following terms and conditions. If you do not wish to be bound by these terms, then please do not use WISH Message Boards. You understand that all messages appearing here are the sole responsibility of those persons posting the message. This means that you, and not WISH, are entirely responsible for all information and material that you post on WISH Message Boards. WISH does not control the content of any messages posted on WISH Message Boards and does not guarantee the accuracy, integrity or quality of anything on the WISH Message Boards or any products or services that may appear here. You understand that by using WISH Message Boards, you may be exposed to content that is offensive, indecent or objectionable. Under no circumstances will WISH be liable for any errors or omissions in any postings or for any loss or damages of any kind incurred as a result of the use of any information contained in WISH Message Boards. You agree not to do any of the following while using WISH Message Boards:'); 
	document.write('<ol>');
	document.write('<li class=normal>Transmit any message, information, data, text or other materials ("Content") that is unlawful, harmful, threatening, abusive, harassing, tortious, defamatory, vulgar, obscene, libelous, that may be invasive of another\'s privacy, hateful, racially, ethnically or otherwise objectionable;');
	document.write('<li class=normal>Impersonate any person or entity, or falsely state or otherwise misrepresent your affiliation with a person or entity;');
	document.write('<li class=normal>Post or transmit any software or graphic files on WISH Message Boards or transmit any Content that you do not have a right to transmit under any law or under contractual or fiduciary relationships (such as nondisclosure agreements);');
	document.write('<li class=normal>Post or transmit any unsolicited advertising, promotional materials, "junk mail", "spam", "chain letters", "pyramid schemes", or any other form of solicitation in WISH Message Boards;');
	document.write('<li class=normal>Intentionally or unintentionally violate any applicable local, state, national or international law, including but not limited to the regulations promulgated by the U.S. Securities and Exchange Commission, any rules of any national or other securities exchange, including, without limitation, the New York Stock Exchange, the American Stock Exchange or the NASDAQ and any regulations having the force of law while using or accessing WISH Message Boards; and');
	document.write('<li class=normal>Upload or transmit any Content that infringes any patent, trademark, trade secret, copyright or other proprietary rights ("Rights") of any party. WISH and its designees shall have the right in their sole discretion to edit or remove any Content posted on WISH Message Boards. Without limiting the foregoing, WISH and its designees shall have the right to remove any Content that is in violation of the provisions hereof or otherwise objectionable. You agree to indemnify and hold WISH harmless from any claim or demand, including reasonable attorneys\' fees, made by any third party due to or arising out of your violation of these terms and conditions or your violation of any rights of another. Copyrighted Information Message boards sometimes contain material in which users share material they have copied electronically from other sources. Because there are many thousands of possible sources spread out across the Internet, e.g., newspapers, scientific journals and bulletin boards, it is impossible to determine if any message on WISH Message Boards infringes the copyright of another party. If you believe that your work has been copied in a way that constitutes copyright infringement, please notify us so the situation can be promptly addressed.');
	document.write('<li class=normal>Miscellaneous: These terms and conditions shall be governed by and construed in accordance with the laws of the state of New Jersey, excluding its conflict of law provisions. You and WISH agree to submit to the personal and exclusive jurisdiction of the courts located within the state of New Jersey. The failure of WISH to exercise or enforce any right or provision of these terms and conditions shall not constitute a waiver of such right or provision. If any provision of these terms and conditions is found by a court of competent jurisdiction to be invalid, the court should endeavor to give effect to the intention reflected in the provision, and the other provisions of these terms and conditions shall remain in full force and effect. You agree that regardless of any statute or law to the contrary, any claim or cause of action arising out of or related to use of WISH Message Boards or these terms and conditions must be filed within one (1) year after such claim or cause of action arose. The section titles herein are for convenience only and have no legal or contractual effect. WISH reserves the right to change these terms and conditions at any time and from time to time.');
	document.write('</ol>');
	document.write('<p>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}		

function isValidEmail(email) {
	if (email != "") {
		if (email.indexOf('@')<1) {
			return false;
		}
		if (email.indexOf('.')==-1) {
			return false;
		}
		if (email.indexOf('.')==(email.length -1)) {
			return false;
		}
		if (email.indexOf('.')==(email.indexOf('@')+1)) {
			return false;
		}
	}
	return true;
}

function getArgs() {
	//New an object
	var args = new Object()
	// Get Query String
	var query = location.search.substring(1); 
	// Split query at the comma
	var pairs = query.split("&"); 
	
	// Begin loop through the querystring
	for(var i = 0; i < pairs.length; i++) {

		// Look for "name=value"
		var pos = pairs[i].indexOf('='); 
		// if not found, skip to next
		if (pos == -1) continue; 
		// Extract the name
		var argname = pairs[i].substring(0,pos); 
		
		// Extract the value
		var value = pairs[i].substring(pos+1); 
		// Store as a property
		args[argname] = unescape(value); 
	}
	return args[argname]; // Return the Object
}

// Image Slide Show
var pictures = new Array ("images/image0.jpg","images/federation.gif","images/image3.jpg","images/image4.jpg");
var picture_num = 0;
var current_picture = new Image();
current_picture.src = pictures[picture_num];
function start_show() {
	// Time is in seconds X 1000
	setInterval("slideshow()", 3000);
}

function slideshow() {
	picture_num++;
	if (picture_num == pictures.length) picture_num = 0;
	current_picture.src = pictures[picture_num];
	document["rotating_picture"].src = current_picture.src;
}
// End Image Slide Show

function trim(inputString) {
   // Removes leading and trailing spaces from the passed string. Also removes
   // consecutive spaces and replaces it with one space. If something besides
   // a string is passed in (null, custom object, etc.) then return the input.
   if (typeof inputString != "string") { return inputString; }
   var retValue = inputString;
   var ch = retValue.substring(0, 1);
   while (ch == " ") { // Check for spaces at the beginning of the string
      retValue = retValue.substring(1, retValue.length);
      ch = retValue.substring(0, 1);
   }
   ch = retValue.substring(retValue.length-1, retValue.length);
   while (ch == " ") { // Check for spaces at the end of the string
      retValue = retValue.substring(0, retValue.length-1);
      ch = retValue.substring(retValue.length-1, retValue.length);
   }
   while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
      retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
   }
   return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function	

function isEmpty(str) {
	if (str == "") return true;
	if (str.split(" ").join("") == "") return true;
	if (str == "0") return true;
}

function selectALL(e) {
	var optionLen = e.length
	if (e.options[e.selectedIndex].value == 'all') {
		for (var i=0; i<optionLen; i++) {
			if (e.options[i].value != 'all') e.options[i].selected = true	
		}		
		e.options[0].selected = false
	}
}

