var localFormatDate = "mm/dd/yy"

function host_hompage()
{
	top.window.location.href = "../";
}

function ClientHomePage(ClientID,AffiliateID,IsRedmatchHomePage)
{
//top.window.location.href = "http://www.st701.com/"
//return;


	if (IsRedmatchHomePage == '1')
		top.window.location.href = "../home.asp?ClientID=" + ClientID + "&AffiliateID=" + AffiliateID+ "&IsRedmatchHomePage=" + IsRedmatchHomePage;
	else if (IsRedmatchHomePage == '2')
		top.window.location.href = "../home.asp?ClientID=" + ClientID + "&AffiliateID=" + AffiliateID+ "&IsRedmatchHomePage=" + IsRedmatchHomePage;
	else
		parent.location.href = "../home.asp?ClientID=" + ClientID + "&AffiliateID=" + AffiliateID+ "&IsRedmatchHomePage=" + IsRedmatchHomePage;
}



function goToHeaderTab(obj, menu, nav)
{
	return;
}

function actionInExternalFrame_RMApplyLogin()
{
	//if(parent.parent.frames[1] != null)	parent.parent.frames[1].location.href = "../SearchLeftFrame.asp"
}

function OpenPopupAfterRegistration()
{
}

function OpenWellcomePopupAfterRegistration()
{
}

function HideLeftFrame()
{
	//if (typeof(top.window.frames.center_bar) != "undefined")  
	//	top.window.frames.center_bar.cols = '0, *';
}

function checkSalary ( value )
{
	return false;
}

function Back2Search(ClientID,AffiliateID,IsRedmatchHomePage,ActionType)
{

	if(ClientID == ''){

		if (document.theForm.NoBackground.value == '1')
			if (ActionType == 1 )
				document.theForm.action.value = "employee.RMSearchResults.init";
			else
				document.theForm.action = "c.asp?action=employee.RMSearchResults.init";	
		else
			if (ActionType == 1 )
				if(document.theForm.NoBackground.value != '1')
				    document.theForm.action.value = "employee.RMSearchResults.load";
				else
				    document.theForm.action.value = "employee.RMSearchResults.init";
			else
			    if(document.theForm.NoBackground.value != '1')
				    document.theForm.action = "c.asp?action=employee.RMSearchResults.load";
				else
			        document.theForm.action = "c.asp?action=employee.RMSearchResults.init";

			
		document.theForm.target="visibleFrame"
		document.theForm.submit()
	}
	else
	{

	   if (IsRedmatchHomePage == '1')
		top.window.location.href = "../Search.asp?AffiliateID=" + AffiliateID + "&amp;ClientID=" + ClientID;
	     else if (IsRedmatchHomePage == '2')
		top.window.location.href = "../Search.asp?AffiliateID=" + AffiliateID + "&amp;ClientID=" + ClientID
	     else
		parent.location.href = "../Search.asp?AffiliateID=" + AffiliateID + "&amp;ClientID=" + ClientID
		
	}


}

function MyJobs()
{
	//HideLeftFrame()
	document.theForm.target = "_self"	
	document.theForm.action.value = "employee.myCareer.init";
	document.theForm.submit()
}

function getABC()
{
	var abc = new Array()
	abc[0] = 'abcdefghijklmnopqrstuvwxyz'		
	abc[1] = '0123456789'
	return abc;
}

function GotoHrHomePage(iAffiliateID,iClientId)
{
	parent.document.location.href = "http://hr.thejobnetwork.com/default.asp?AffiliateID=" + iAffiliateID + "&ClientId=" + iClientId;
}

function isValidUsername(username)
{
	return true;
}
