//Trim function

function Trim(nStr)
{
	return nStr.replace(/(^\s*)|(\s*$)/g, "");
}

//Null checking for textboxes
function isNull(obj,str)
{
	if (Trim(obj.value)=="")
	{
		alert("Please enter the " + str);
		obj.focus();
		return true;
	}
	else
		return false;
}


//Null checking for textarea

function isTxtareaNull(obj,str)
{
	if(Trim(obj.value) == "")
	{
		alert("Please enter the " +str);
		obj.focus();
		return true;
	}
	else
		return false;
}


//checking password

function isPassword(obj)
{
	
	if ((obj.value.length)<5)
	{
		alert("Password should have atleast 5 characters");
		obj.value = "";
		obj.focus();
		return true;
	}
	
	exp=/[^\W]/;
	if(!exp.test(obj.value))
	{
		alert("Special characters not accepted");
		obj.value = "";
		obj.focus();
		return true;
	}
	else
		return false;
}


//checking for special characters & space

function isSpecial(obj)
{
	exp=/(^\w*$)/;
	if(!exp.test(obj.value))
	{
		alert("Special characters & space not accepted");
		obj.focus();
		return true;
	}

}

//For Number

function fnChkNum(obj,msg)
{
	exp = /^[\d]/;
	if (!exp.test(obj.value))
	{
		alert("Please enter only numeric values in "+msg);
		obj.focus();
		return true;
	}
	else
		return false;
}

//For alphabets

function fnChkAlpha(obj,msg)
{
	exp = (/(^([a-z]|[A-Z]|["."]|[\s])*$)/);
	if (!exp.test(obj.value))
	{
		alert("Please enter only alphabets in "+msg);
		obj.focus();
		return true;
	}
	else
		return false;
}	

//For alpha Numberic

function fnChkAlphaNum(obj,msg)
{
	exp = (/(^([a-z]|[A-Z]|[0-9])*$)/);
	if (!exp.test(obj.value))
	{
		alert("Please enter only alphanumeric in "+msg);
		obj.focus();
		return true;
	}
	else
		return false;
}


function fnChkNum5(obj)
{
	exp = /(^[\d]{5}$)/;
	if (!exp.test(obj.value))
	{
		alert("Password should be a 5 digit number");
		obj.value = "";
		obj.focus();
		return true;
	}
	else
		return false;
}

function fnChkNum4(obj,str)
{
	exp = /(^[\d]{4}$)/;
	if (!exp.test(obj.value))
	{
		alert("Enter a valid "+ str);
		obj.value = "";
		obj.focus();
		return true;
	}
	else
		return false;
}



//checking mail address

function notEmail(obj)
{
	var exp=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
	if (!exp.test(obj.value))
	{
		alert("Please enter valid email address");
		obj.focus();
		return true;
	}
	else
		return false;
}


//checking for checkbox whether it is checked (str)
function notCheckedStr(obj,str)
{
	checked = false;
	if(obj.length)
	{
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].checked)
			{checked = true;break;}
		}
	}
	else if(obj.checked)
		checked = true;

	if(!(checked))
	{
		alert("Please select the "+str);
		if(obj.length)
			obj[0].focus();
		else
			obj.focus();
		return true;
	}
}




//checking for checkbox-Generalising
function notCheckedGen(obj)
{
	checked = false;
	if(obj.length)
	{
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].checked)
			{checked = true;break;}
		}
	}
	else if(obj.checked)
		checked = true;

	if(!(checked))
	{
		alert("Please select atleast one record");
		if(obj.length)
			obj[0].focus();
		else
			obj.focus();
		return true;
	}
}


//Null checking for  combo
function notSelected(obj,str)
{
	if (obj.options[obj.selectedIndex].value == "")
	{
		alert("Please select the "+str);
		obj.focus();
		return true;
	}
	else
		return false;
}


//Checking for Image file

function notImageFile(obj)
{
	var exp = /^.+\.(jpg|gif|jpeg|bmp)$/;
	if (!exp.test((obj.value).toLowerCase()))
	{
		alert("Please choose jpg or gif file");
		obj.focus();
		return true;
	}
	else
		return false;
}


//Checking for valid file

function notPdfDocFile(obj)
{
	var exp = /^.+\.(pdf|doc|jpg|gif|jpeg|bmp|ppt|pps)$/;
	if (!exp.test((obj.value).toLowerCase()))
	{
		alert("Please choose pdf or doc file");
		obj.focus();
		return true;
	}
	else
		return false;
}

//
function isNullDescription(obj,str)
{
	if (Trim(obj.value)=="")
	{
		alert("Please enter the " + str);
		return true;
	}
	else
		return false;
}



//Checking for a valid price

function notPrice(obj)
{
	exp = /^[\d]*[\.]{0,1}[\d]{1,2}$/;
	if (!exp.test(obj.value))
	{
		alert("Please enter valid price");
		obj.focus();
		return true;
	}
	else
		return false;
}

//Used for displaying the countries

function GetCountry(defaultValue,isNotWithSelect)
{
	var sCountry="Afghanistan,Albania,Algeria,American Samoa,Andorra,Angola,Anguilla,Antarctica,Antigua and Barbuda,Argentina,Armenia,Aruba,Australia,Austria,Azerbaidjan,Bahamas,Bahrain,Bangladesh,Barbados,Belarus,Belgium,Belize,Benin,Bermuda,Bolivia,Bosnia-Herzegovina,Botswana,Bouvet Island,Brazil,British Indian O. Terr.,Brunei Darussalam,Bulgaria,Burkina Faso,Burundi,Buthan,Cambodia,Cameroon,Canada,Cape Verde,Cayman Islands,Central African Rep.,Chad,Chile,China,Christmas Island,Cocos (Keeling) Isl.,Colombia,Comoros,Congo,Cook Islands,Costa Rica,Croatia,Cuba,Cyprus,Czech Republic,Czechoslovakia,Denmark,Djibouti,Dominica,Dominican Republic,East Timor,Ecuador,Egypt,El Salvador,Equatorial Guinea,Estonia,Ethiopia,Falkland Isl.(Malvinas),Faroe Islands,Fiji,Finland,France,France (European Ter.),French Southern Terr.,Gabon,Gambia,Georgia,Germany,Ghana,Gibraltar,Great Britain (UK),Greece,Greenland,Grenada,Guadeloupe (Fr.),Guam (US),Guatemala,Guinea,Guinea Bissau,Guyana,Guyana (Fr.),Haiti,Heard & McDonald Isl.,Honduras,Hong Kong,Hungary,Iceland,India,Indonesia,Iran,Iraq,Ireland,Israel,Italy,Ivory Coast,Jamaica,Japan,Jordan,Kazachstan,Kenya,Kirgistan,Kiribati,Korea (North),Korea (South),Kuwait,Laos,Latvia,Lebanon,Lesotho,Liberia,Libya,Liechtenstein,Lithuania,Luxembourg,Macau,Madagascar,Malawi,Malaysia,Maldives,Mali,Malta,Marshall Islands,Martinique (Fr.),Mauritania,Mauritius,Mexico,Micronesia,Moldavia,Monaco,Mongolia,Montserrat,Morocco,Mozambique,Myanmar,Namibia,Nauru,Nepal,Netherland Antilles,Netherlands,Neutral Zone,New Caledonia (Fr.),New Zealand,Nicaragua,Niger,Nigeria,Niue,Norfolk Island,Northern Mariana Isl.,Norway,Oman,Pakistan,Palau,Panama,Papua New,Paraguay,Peru,Philippines,Pitcairn,Poland,Polynesia (Fr.),Portugal,Puerto Rico (US),Qatar,Reunion (Fr.),Romania,Russian Federation,Rwanda,Saint Lucia,Samoa,San Marino,Saudi Arabia,Senegal,Seychelles,Sierra Leone,Singapore,Slovak Republic,Slovenia,Solomon Islands,Somalia,South Africa,Spain,Sri Lanka,St. Helena,St. Pierre & Miquelon,St. Tome and Principe,St.Kitts Nevis Anguilla,St.Vincent & Grenadines,Sudan,Suriname,Svalbard & Jan Mayen Is,Swaziland,Sweden,Switzerland,Syria,Tadjikistan,Taiwan,Tanzania,Thailand,Togo,Tokelau,Tonga,Trinidad & Tobago,Tunisia,Turkey,Turkmenistan,Turks & Caicos Islands,Tuvalu,Uganda,Ukraine,United Arab Emirates,United Kingdom,United States,Uruguay,US Minor outlying Isl.,Uzbekistan,Vanuatu,Vatican City State,Venezuela,Vietnam,Virgin Islands (British)";
	var xCountry=sCountry.split(",");
	var str="";
	if (!isNotWithSelect)str+="<option value='' selected>Select</option>\n";else str+="<option value='' selected>Doesn't Matter</option>\n";
	for(i=0;i<xCountry.length; i++)
	if(xCountry[i]==defaultValue)str+="<option value='"+xCountry[i]+"' selected>"+xCountry[i]+"</option>\n";else str+="<option value='"+xCountry[i]+"'>"+xCountry[i]+"</option>\n";
	document.write(str);
}


//Used for displaying the states in US

function GetUSStates()
{

	var sState="Alabama,Alaska,Arizona,Arkansas,California,California(Southern),Colorado,Connecticut,Delaware,District Of Columbia,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Western Missouri,Eastern MissouriMontana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode IslandSouth Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming";
	var xState=sState.split(",");
	var str="";
	for(i=0;i<xState.length; i++)
	str+="<option value='"+xState[i]+"'>"+xState[i]+"</option>\n";
	document.write(str);
}



//For any description tht has to be within the limits (8000)
function isNewsletter(obj)
{
		if((obj.value.length)>7999)
	{
		alert("Newsletter content execeeds the limit");
		return true;
	}
	else
	return false;
}

//For any description tht has to within 250 characters

function isContent(obj,str)
{
	if((obj.value.length)>250)
	{
		alert("The "+str+" should be of 250 characters");
		obj.focus();
		return true;
	}
else
return false;
}




//For checking valid date

function isValidDate(obj,str)
{
exp=/^[\d]{1,2}[\/]{1}[\d]{1,2}[\/]{1}[\d]{4}$/;
if (!exp.test(obj.value))
	{
		alert("Invalid Date. Please enter a valid " + str);
		obj.value = "";
		obj.focus();
		return true;
	}
	else
		return false;
}




//Calendar control :  windows 2000
function showCalendar(ObjTxt)
	{
	   	var winRetValue=window.showModalDialog("includes/calender.htm","","dialogHeight: 219px; dialogWidth: 273px;  center: Yes; help: No; resizable: No; status: No;titlebar:No");
   		if (winRetValue != "") 
   		ObjTxt.value = winRetValue;
  	}


//For XP
function showCalendarXP(ObjTxt)
{
		var winRetValue=window.showModalDialog("includes/calender.htm","","dialogHeight: 240px; dialogWidth: 272px;  center: Yes; help: No; resizable: No; status: No;titlebar:No");
		if (winRetValue != "abc") if (ObjTxt)ObjTxt.value = winRetValue;else ObjTxt.value = winRetValue;
		ObjTxt.focus();
}

function fnEmpe()
{
if(isNull(document.frmEmployee.txtEmployeeLoginName,"user name"))return false;
if(isNull(document.frmEmployee.txtEmployeePassword,"password"))return false;

}


function fnEmpr()
{

if(isNull(document.frmEmployer.txtEmployerLoginName,"user name"))return false;
if(isNull(document.frmEmployer.txtEmployerPassword,"password"))return false;
if(fnChkNum5(document.frmEmployer.txtEmployerPassword,"password"))return false;
}

function fnEmpeLogin()
{
	var str;
	str="";
	str+="<form name='frmEmployee' onSubmit='return fnEmpe();' action='index.asp?id=empe' method='post'>";
	str+="<table cellpadding='4' cellspacing='0' border='0' width='98%' align='right'>";
	str+="<tr>";
	str+="<td>Username</td>";
	str+="<td><input type='text' name='txtEmployeeLoginName' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>Password</td>";
	str+="<td><input type='password' name='txtEmployeePassword' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>&nbsp;</td>";
	str+="<td><input type='submit' class='butten' value='Submit'></td>";
	str+="</tr>";
	str+="<tr><td colspan='2' class='tdsignup' height='30' valign='top'><a href='employee/add_profile.asp' class='signup'>New User Signup</a>&nbsp;|&nbsp;<a href='forgotpassword.asp?act=LEE' class='signup'>Forgot Password</a></td></tr>";
	str+="</table>";
	str+="</form>";
	document.write(str);
	
}

function  fnEmprLogin()
{
	var str="";
	str+="<form name='frmEmployer' onSubmit='return fnEmpr();' action='index.asp?id=empr' method='post'>";
	str+="<table cellpadding='4' cellspacing='0' border='0' width='98%' align='right'>";
	str+="<tr>";
	str+="<td>User Name</td>";
	str+="<td><input type='text' name='txtEmployerLoginName' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>Password</td>";
	str+="<td><input type='password' name='txtEmployerPassword' class='txtbox1' size='17' maxlength='6'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>&nbsp;</td>";
	str+="<td><input type='submit' class='butten' value='Submit'></td>";
	
	str+="</tr>";
	str+="<tr><td colspan='2' class='tdsignup' height='30' valign='top'><a href='employer/add_profile.asp' class='signup'>New User Signup</a>&nbsp;|&nbsp;<a href='forgotpassword.asp?act=LER' class='signup'>Forgot Password</a></td></tr>";
	str+="</table>";
	str+="</form>";
	document.write(str);
}

function fnEmpGeneral()
{
	var str="";
	var strPath ="http://aesasp/aesweb/sima/ver5/";
	str+="<table cellpadding='0' cellspacing='0' border='0' width='219' height='100%'>";
	str+="<tr><td valign='top' width='219' height='34'><img src='"+linkPath+"images/jobseekerslogin.gif' alt='Job Seekers Login' height='34' width='219'></td></tr>";
	str+="<tr>";
	str+="<td bgcolor='#E1E0D2' valign='top'><br>";
	str+="<form name='frmEmployee' onSubmit='return fnEmpe();' action='"+linkPath+"index.asp?id=empe' method='post'>";
	str+="<table cellpadding='4' cellspacing='0' border='0' width='98%' align='right'>";
	str+="<tr>";
	str+="<td>Username</td>";
	str+="<td><input type='text' name='txtEmployeeLoginName' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>Password</td>";
	str+="<td><input type='password' name='txtEmployeePassword' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>&nbsp;</td>";
	str+="<td><input type='submit' class='butten' value='Submit'></td>";
	str+="</tr>";
	str+="<tr><td colspan='2' class='tdsignup' height='30' valign='top'><a href='"+strPath+"employee/add_profile.asp' class='signup'>New User Signup</a>&nbsp;|&nbsp;<a href='#' class='signup'>Forgot Password</a></td></tr>";
	str+="</table>";
	str+="</form>";
	str+="</td></tr>";
	str+="<tr><td height='1'><img src='"+strPath+"images/spacer.gif' height='1'></td></tr>";
	str+="<tr><td valign='top' width='219' height='34'><img src='"+strPath+"images/memberlogin.gif' alt='Member Login' height='34' width='219'></td></tr>";
	str+="<tr>";
	str+="<td bgcolor='#E5E3C9' valign='top'><br>";
	str+="<form name='frmEmployer' onSubmit='return fnEmpr();' action='"+strPath+"index.asp?id=empr' method='post'>";
	str+="<table cellpadding='4' cellspacing='0' border='0' width='98%' align='right'>";
	str+="<tr>";
	str+="<td>User Name</td>";
	str+="<td><input type='text' name='txtEmployerLoginName' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>Password</td>";
	str+="<td><input type='password' name='txtEmployerPassword' class='txtbox1' size='17' maxlength='100'></td>";
	str+="</tr>";
	str+="<tr>";
	str+="<td>&nbsp;</td>";
	str+="<td><input type='submit' class='butten' value='Submit'></td>";
	str+="</tr>";
	str+="<tr><td colspan='2' class='tdsignup' height='30' valign='top'><a href='"+strPath+"employer/add_profile.asp' class='signup'>New User Signup</a>&nbsp;|&nbsp;<a href='#' class='signup'>Forgot Password</a></td></tr>";
	str+="</table>";
	str+="</form>";
	str+="</td></tr>";
	str+="<tr><td height='1'><img src='"+linkPath+"images/spacer.gif' height='1'></td></tr>";
	str+="<tr><td height='100%' bgcolor='#F9F8E5'><img src='"+linkPath+"images/spacer.gif'></td></tr>";
	str+="</table>";
	document.write(str);
}



function fnProfile()	// to display profile
{
//	window.open("http://aesasp/aesweb/sima/ver5/employee/profile.asp","Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");
	//window.open("http://www.24x7a2z.com/sima/employee/profile.asp","Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");	
	window.open("profile.asp","Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");	
}


function fnProfile1()	// to display profile
{
	strPath = linkPath+"employee/"+"profile1.asp";
//	window.open("http://aesasp/aesweb/sima/ver5/employee/profile.asp","Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");
	//window.open("http://www.24x7a2z.com/sima/employee/profile.asp","Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");	
	window.open(strPath,"Profile","Left=180, Top=90, height=500,width=650,toolbar=no,scrollbars=yes,menubar=no,resize=false");	
}


function EmployeerightMenu()
{
	var str="";
	strPath = linkPath+"employee/";
	str+="<table cellpadding='0' cellspacing='0' border='0' width='219' height='100%'>";
	str+="<tr><td valign='top' height='34' width='219'><img src='"+linkPath+"images/employee.gif' alt='Employee' height='34' width='219'></td></tr>";
	str+="<tr><td valign='top'>";
	str+="<table cellpadding='0' cellspacing='0' border='0' bgcolor='#E5E3C9' width='219'>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"edit_profile.asp' class='sidelnk' title='Edit Employee Profile'>Edit Employee Profile</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"view_jobs.asp' class='sidelnk' title='View Jobs'>View Jobs</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='javascript:fnProfile()' class='sidelnk' title='View Profile'>View Profile</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"changepassword.asp' class='sidelnk' title='Change Password'>Change Password</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+linkPath+"index.asp?act=LEE' class='sidelnk' title='Logout'>Logout</a></td>";
	str+="</tr>";
	str+="</table>";
	str+="</td></tr>";
	str+="<tr><td height='1'><img src='"+linkPath+"images/spacer.gif' height='1'></td></tr>";
	str+="<tr><td height='100%' bgcolor='#F9F8E5'><img src='"+linkPath+"images/spacer.gif'></td></tr>";
	str+="</table>";
	document.write(str);

}


function EmployerrightMenu()
{
	var str="";
	var strPath =linkPath+"employer/";
	str+="<table cellpadding='0' cellspacing='0' border='0' width='219' height='100%'>";
	str+="<tr><td valign='top' height='34' width='219'><img src='"+linkPath+"images/employer.gif' alt='Employee' height='34' width='219'></td></tr>";
	str+="<tr><td valign='top'>";
	str+="<table cellpadding='0' cellspacing='0' border='0' bgcolor='#E5E3C9' width='219'>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"edit_profile.asp' class='sidelnk' title='Edit Company Profile'>Edit Company Profile</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"view_jobs.asp' class='sidelnk' title='Post Jobs'>Post Jobs</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"search_resume.asp' class='sidelnk' title='Search Resume'>Search Resume</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+="<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+="<td height='30'><a href='"+strPath+"changepassword.asp' class='sidelnk' title='Change Password'>Change Password</a></td>";
	str+="</tr>";
	str+="<tr><td colspan='3' background='"+linkPath+"images/line.gif' height='2'></td></tr>";
	str+="<tr>";
	str+="<td width='9'><img src='"+linkPath+"images/spacer.gif' width='9'></td>";
	str+= "<td width='18'><img src='"+linkPath+"images/bullet.gif' width='9' height='9'></td>";
	str+= "<td height='30'><a href='"+linkPath+"index.asp?act=LER' class='sidelnk' title='Logout'>Logout</a></td>";
	str+= "</tr>";
	str+="</table>";
	str+="</td></tr>";
	str+="<tr><td height='1'><img src='"+linkPath+"images/spacer.gif' height='1'></td></tr>";
	str+="<tr><td height='100%' bgcolor='#F9F8E5'><img src='"+linkPath+"images/spacer.gif'></td></tr>";
	str+="</table>";
	
	document.write(str);
	
}



