// JScript source code
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();return true;
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
var _25=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);_25=new deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_23&&_25.major>_23.major){return _25;}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
catch(e){}}}return _25;};
deconcept.PlayerVersion=function(_29){
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
this.minor=parseInt(_29[1])||0;
this.rev=parseInt(_29[2])||0;};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};
deconcept.util={getRequestParameter:function(_2b){
var q=document.location.search||document.location.hash;
if(q){var _2d=q.indexOf(_2b+"=");
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
if(q.length>1&&_2d>-1){return q.substring(q.indexOf("=",_2d)+1,_2e);}}
return "";}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _2f=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2f.length;i++){
for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=null;}}}};
if(typeof window.onunload=="function"){
var oldunload=window.onunload;
window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();oldunload();};
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}
if(Array.prototype.push==null){
Array.prototype.push=function(_32){
this[this.length]=_32;
return this.length;};}

var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for backwards compatibility
var SWFObject = deconcept.SWFObject;

// Date Validation
var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		//alert("The date format should be : dd/mm/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		//alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		//alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		//alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){		
		return false;
	}
	else{
		return true;
	}
}

// Display Date
function displayDate(){
	// Get today's current date.
	var now = new Date();

	// Array list of days.
	var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

	// Array list of months.
	var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

	// Calculate the number of the current day in the week.
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

	// Calculate four digit year.
	function fourdigits(number)	{
		return (number < 1000) ? number + 1900 : number;
									}

	// Join it all together
	today =  days[now.getDay()] + ", " +
			months[now.getMonth()] + " " +
			date + ", " +
			(fourdigits(now.getYear())) ;

	// Print out the data.
	document.write(today);
}

// Form Validation
function isValidEmail(str) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(str)){
		return true;
	}
	else {
		return false;
	}
}

function addLoadEvent(func) {	
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;		
	} 
	else {
		window.onload = function() {
		oldonload();		
		func();
		}
	}
}

// Navation Dropdown
addLoadEvent(function() {
if (document.all&&document.getElementById) {
	navRoot = document.getElementById("mainnav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
			node.onmouseover=function() {
			this.className+=" over";
		}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
		}
		}
	}
})

function checkenquiry(){
	var ftxt = '';

	if (document.enquiryform.Name.value==''){
		ftxt += '\n- Please enter your Name.';
	}
	
	if (document.enquiryform.Company.value==''){
		ftxt += '\n- Please enter your Company Name.';
	}
	
	if (document.enquiryform.Telephone.value==''){
		ftxt += '\n- Please enter your Telephone Number.';
	}
	
	if (isValidEmail(document.enquiryform.email.value)==false){
		ftxt += '\n- Please enter your Email Address.';
	}
	
	if (document.enquiryform.subject.value==''){
		ftxt += '\n- Please select an Enquiry.';
	}
	
	if (document.enquiryform.Comments.value==''){
		ftxt += '\n- Please enter your Comments.';
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function enablefields(fVal){
	var arrFullMemRows = new Array('dAddress','dPostcode','dTelephone_Home','dTelephone_Work','dTelephone_Mobile','dExtendedFields');

	for (var i=0;i<arrFullMemRows.length;i++){
		if (fVal==1){
			document.getElementById(arrFullMemRows[i]).style.display='';
		}
		else if (fVal==2){
			document.getElementById(arrFullMemRows[i]).style.display='none';
		}
	}
}

function checkregisternow(){
	var ftxt = '';
	
	var btype = false;
	var bfullmem = false;
	for (var i=0;i<2;i++){
		if (document.registernow.Type[i].checked==true){
			btype = true;
			if (document.registernow.Type[i].value==1){
				bfullmem = true;
			}	
		}
	}
		
	if (btype==false){
		ftxt += '\n- Please select a Membership Type.';
	}
	
	var ptxt = '';	
	if (document.registernow.Title.value==''){
		ptxt += '\n- Please select your Title.';
	}
	
	if (document.registernow.Firstname.value==''){
		ptxt += '\n- Please enter your First Name.';
	}
	
	if (document.registernow.Lastname.value==''){
		ptxt += '\n- Please enter your Last Name.';
	}
	
	if (isValidEmail(document.registernow.EmailAddress.value)==false){
		ptxt += '\n- Please enter your Email Address.';
	}
	
	if (bfullmem&&document.registernow.Address.value==''){
		ptxt += '\n- Please enter your Address.';
	}
	
	if (bfullmem&&document.registernow.Postcode.value==''){
		ptxt += '\n- Please enter your Postcode.';
	}
	
	if (bfullmem&&document.registernow.Telephone_Home.value==''){
		ptxt += '\n- Please enter your Telephone Number (Home).';
	}
	
	if (bfullmem&&document.registernow.Telephone_Mobile.value==''){
		ptxt += '\n- Please enter your Telephone Number (Mobile).';
	}
	
	if (document.registernow.OfficeID.value==''){
		ptxt += '\n- Please select the Nearest Orbis Group Office.';
	}
			
	if (bfullmem&&document.registernow.ProfessionalQualifications.value==''){
		ptxt += '\n- Please provide information on your Professional Qualifications.';
	}
	
	if (bfullmem&&document.registernow.EducationalQualifications.value==''){
		ptxt += '\n- Please provide information on your Educational Qualifications.';
	}
	
	if (bfullmem&&document.registernow.CurrentEmployer.value==''){
		ptxt += '\n- Please provide the name of your Current Employer.';
	}
	
	if (bfullmem&&document.registernow.PositionCurrentEmployer.value==''){
		ptxt += '\n- Please provide the position of your Current Employment.';
	}
	
	if (bfullmem&&document.registernow.PreviousEmployer.value==''){
		ptxt += '\n- Please provide the name of your Previous Employer.';
	}
	
	if (bfullmem&&document.registernow.PreviousCurrentEmployer.value==''){
		ptxt += '\n- Please provide the position of your Previous Employment.';
	}
	
	if (bfullmem&&document.registernow.NoticePeriod.value==''){
		ptxt += '\n- Please select the Notice Period you must give to your current employer.';
	}
	
	if (bfullmem&&document.registernow.CurrentSalaryPackage.value==''){
		ptxt += '\n- Please select the Salary Range most applicable to your current employment.';
	}
	
	if (ptxt!==''){
		if (ftxt!==''){
			ftxt += '\n';
		}
		ftxt += '\n**** Personal Details ****\n' + ptxt;
	}
	
	/* Search Fields */
	var stxt = '';
	var bsearchtype = false;
	for (var i=0;i<2;i++){
		if (document.registernow.SearchType[i].checked==true){
			bsearchtype = true;
		}
	}	
	if (bsearchtype==false){
		stxt += '\n- Please select a Type.';
	}
	
	if (document.registernow.SearchSectorID.value==''){
		stxt += '\n- Please select a Sector.';
	}
	
	if (document.registernow.SearchLocationID.value==''){
		stxt += '\n- Please select a Location.';
	}
	
	if (stxt!==''){
		if (ftxt!==''){
			ftxt += '\n';
		}
		ftxt += '\n**** Job Search Criteria ****\n' + stxt;
	}
	
	/*
	if (document.registernow.TermsConditions.checked==false){
		ftxt += '\n- You must agree to the Terms & Conditions to register.';
	}
	*/
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkregistervacancyform(){
	var ftxt = '';
	
	var ptxt = '';
	if (document.registervacancy.Title.value==''){
		ptxt += '\n- Please select your Title.';
	}
	
	if (document.registervacancy.Firstname.value==''){
		ptxt += '\n- Please enter your First Name.';
	}
	
	if (document.registervacancy.Lastname.value==''){
		ptxt += '\n- Please enter your Last Name.'
	}
	
	if (document.registervacancy.Position.value==''){
		ptxt += '\n- Please enter your Position.';
	}
	
	if (document.registervacancy.Company.value==''){
		ptxt += '\n- Please enter your Company Name.';
	}
	
	if (isValidEmail(document.registervacancy.EmailAddress.value)==false){
		ptxt += '\n- Please enter your Email Address.';
	}
	
	if (document.registervacancy.Address.value==''){
		ptxt += '\n- Please enter your Address.';
	}
	
	if (document.registervacancy.Postcode.value==''){
		ptxt += '\n- Please enter your Postcode.';
	}
	
	
	if (document.registervacancy.Telephone_DirectLine.value==''){
		ptxt += '\n- Please enter your Telephone (Direct Line).';
	}
	
	if (document.registervacancy.OfficeID.value==''){
		ptxt += '\n- Please select your Nearest Orbis Group Office.';
	}
	
	if (ptxt!==''){
		ftxt += '\n**** Company Details ****\n' + ptxt;
	}
	
	var vtxt = '';
	
	if (document.registervacancy.JobTitle.value==''){
		vtxt += '\n- Please enter the Job Title.';
	}
	
	if (document.registervacancy.Location.value==''){
		vtxt += '\n- Please select the Job Location.';
	}
	
	if (document.registervacancy.SalaryBenefits.value==''){
		vtxt += '\n- Please enter the Salary and Benefits.';
	}
	
	if (document.registervacancy.Description.value==''){
		vtxt += '\n- Please enter the Job Description.';
	}
	
	if (document.registervacancy.PositionReportTo.value==''){
		vtxt += '\n- Please enter what the position report\'s to.';
	}
	
	if (document.registervacancy.PositionManage.value==''){
		vtxt += '\n- Please enter how many people the position will manage.';
	}
	
	if (document.registervacancy.QualificationsRequired.value==''){
		vtxt += '\n- Please enter the qualifications the candidate must have.';
	}
	
	if (document.registervacancy.QualificationsDesirable.value==''){
		vtxt += '\n- Please enter the qualifications the candidate would desirably have.';
	}
	
	if (document.registervacancy.CompanyDo.value==''){
		vtxt += '\n- Please specify what your company does.';
	}
	
	if (document.registervacancy.CompanyTurnover.value==''){
		vtxt += '\n- Please specify the annual turnover of your company.';
	}
	
	if (vtxt!==''){
		if (ftxt!==''){
			ftxt += '\n';
		}
		ftxt += '\n**** Vacancy Details ****\n' + vtxt;
	}
	
	/*
	if (document.registervacancy.TermsConditions.checked==false){
		ftxt += '\n- You must agree to the Terms & Conditions to proceed.';
	}
	*/
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkregistervacancyform(){
	var ftxt = '';
		
	if (document.employerenquiry.Name.value==''){
		ftxt += '\n- Please enter your Name.';
	}
	
	if (document.employerenquiry.Company.value==''){
		ftxt += '\n- Please enter your Company.'
	}
	
	if (isValidEmail(document.employerenquiry.EmailAddress.value)==false){
		ftxt += '\n- Please enter your Email Address.'
	}
	
	if (document.employerenquiry.Telephone.value==''){
		ftxt += '\n- Please enter your Telephone Number.'
	}
	
	if (document.employerenquiry.Enquiry.value==''){
		ftxt += '\n- Please enter your Enquiry.'
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkvacancysearch(){
	var ftxt = '';
	
	var btype = false;	
	var btemporary = false;
	for (var i=0;i<2;i++){
		if (document.vacancysearch.Type[i].checked==true){
			btype = true;
			if (document.vacancysearch.Type[i].value=='Temporary'){
				btemporary = true;
			}
		}
	}
	if (btype==false){
		ftxt += '\n- Please select either Temporary or Permanent.';
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function switchSearchFields(fValue){	
	for (var i=0;i<2;i++){
		if (fValue=='Temporary'){
			document.getElementById("dTemporary").style.display='';
			document.getElementById("dPermanent").style.display='none';
		}
		else if(fValue=='Permanent'){
			document.getElementById("dTemporary").style.display='none';
			document.getElementById("dPermanent").style.display='';
		}
	}
}

function confirmremovejobbasket(submitString){
	if (confirm('Are you sure you want to remove this vacancy from your job basket?')){
		location.href=submitString;
	}
}

function checkcandidatelogin(){
	var ftxt = '';
	
	if (document.candidateformlogin.Username.value==''){
		ftxt += '\n- Please enter your Username.';
	}
	
	if (document.candidateformlogin.Password.value==''){
		ftxt += '\n- Please enter your Password.';
	}

	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkforgottenpassword(){
	var ftxt = '';
	
	if (document.forgottenpassword.Username.value==''){
		ftxt += '\n- Please enter your Username.';
	}
	
	if (isValidEmail(document.forgottenpassword.EmailAddress.value)==false){
		ftxt += '\n- Please enter your Email Address.';
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function applyonlinenow(){
	var activebuttonimg = 'Images/VacancyApplyButton_Active.gif';
	var inactivebuttonimg = 'Images/VacancyApplyButton_InActive.gif';
	
	var termsagreed = document.getElementById("TermsAgreed").checked;
	
	if (termsagreed){		
		document.getElementById("BookImg").src = activebuttonimg;
	}
	else {		
		document.getElementById("BookImg").src = inactivebuttonimg;
	}
}

function checkapplyonline(){
	if (document.applyonline.TermsAgreed.checked==false){
		alert('You must agree to the Application Terms and Conditions to apply online.');
		return false;
	}
	else {
		return true;
	}
}

function confirmLogout(bbask){
	var logtxt = '';
	
	if (bbask){
		logtxt += '** REMINDER **\n\nYou have vacancies in your basket.\n\nAre you sure you want to logout?';
	}
	else {
		logtxt += 'Are you sure you want to logout?';
	}
	
	if (confirm(logtxt)){
		location.href='candidates_login.asp?Logout=True';
	}
}

function checkedituser(){
	var ftxt = '';
		
	var bfullmem = false;
	if (document.edituser.TypeID.value==1){
		bfullmem = true;
	}
		
	var ptxt = '';	
	if (document.edituser.NewPassword.value!==document.edituser.NewPasswordRpt.value){
		ptxt += '\n- Please ensure both New Passwords Match.';
	}
	
	if (document.edituser.Title.value==''){
		ptxt += '\n- Please select your Title.';
	}
	
	if (document.edituser.Firstname.value==''){
		ptxt += '\n- Please enter your First Name.';
	}
	
	if (document.edituser.Lastname.value==''){
		ptxt += '\n- Please enter your Last Name.';
	}
	
	if (isValidEmail(document.edituser.EmailAddress.value)==false){
		ptxt += '\n- Please enter your Email Address.';
	}
	
	if (bfullmem&&document.edituser.Address.value==''){
		ptxt += '\n- Please enter your Address.';
	}
	
	if (bfullmem&&document.edituser.Postcode.value==''){
		ptxt += '\n- Please enter your Postcode.';
	}
	
	if (bfullmem&&document.edituser.Telephone_Home.value==''){
		ptxt += '\n- Please enter your Telephone Number (Home).';
	}
	
	if (bfullmem&&document.edituser.Telephone_Mobile.value==''){
		ptxt += '\n- Please enter your Telephone Number (Mobile).';
	}
	
	if (document.edituser.OfficeID.value==''){
		ptxt += '\n- Please select the Nearest Orbis Group Office.';
	}
		
	if (bfullmem&&document.edituser.ProfessionalQualifications.value==''){
		ptxt += '\n- Please provide information on your Professional Qualifications.';
	}
	
	if (bfullmem&&document.edituser.EducationalQualifications.value==''){
		ptxt += '\n- Please provide information on your Educational Qualifications.';
	}
	
	if (bfullmem&&document.edituser.CurrentEmployer.value==''){
		ptxt += '\n- Please provide the name of your Current Employer.';
	}
	
	if (bfullmem&&document.edituser.PositionCurrentEmployer.value==''){
		ptxt += '\n- Please provide the position of your Current Employment.';
	}
	
	if (bfullmem&&document.edituser.PreviousEmployer.value==''){
		ptxt += '\n- Please provide the name of your Previous Employer.';
	}
	
	if (bfullmem&&document.edituser.PreviousCurrentEmployer.value==''){
		ptxt += '\n- Please provide the position of your Previous Employment.';
	}
	
	if (bfullmem&&document.edituser.NoticePeriod.value==''){
		ptxt += '\n- Please select the Notice Period you must give to your current employer.';
	}
	
	if (bfullmem&&document.edituser.CurrentSalaryPackage.value==''){
		ptxt += '\n- Please select the Salary Range most applicable to your current employment.';
	}
	
	if (ptxt!==''){
		if (ftxt!==''){
			ftxt += '\n';
		}
		ftxt += '\n**** Personal Details ****\n' + ptxt;
	}
	
	/* Search Fields */
	var stxt = '';
	var bsearchtype = false;
	for (var i=0;i<2;i++){
		if (document.edituser.SearchType[i].checked==true){
			bsearchtype = true;
		}
	}
	if (bsearchtype==false){
		stxt += '\n- Please select a Type.';
	}
	
	if (document.edituser.SearchSectorID.value==''){
		stxt += '\n- Please select a Sector.';
	}
	
	if (document.edituser.SearchLocationID.value==''){
		stxt += '\n- Please select a Location.';
	}
	
	if (stxt!==''){
		if (ftxt!==''){
			ftxt += '\n';
		}
		ftxt += '\n**** Job Search Criteria ****\n' + stxt;
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkinternalapplyonline(){
	var ftxt = '';

	if (document.applyonline.Title.value==''){
		ftxt += '\n- Please select your Title.';
	}
	
	if (document.applyonline.Firstname.value==''){
		ftxt += '\n- Please enter your First Name.';
	}
	
	if (document.applyonline.Lastname.value==''){
		ftxt += '\n- Please enter your Last Name.';
	}
	
	if (isValidEmail(document.applyonline.EmailAddress.value)==false){
		ftxt += '\n- Please enter your Email Address.';
	}
	
	if (document.applyonline.Address.value==''){
		ftxt += '\n- Please enter your Address.';
	}
	
	if (document.applyonline.Postcode.value==''){
		ftxt += '\n- Please enter your Postcode.';
	}
	
	if (document.applyonline.Telephone_Home.value==''){
		ftxt += '\n- Please enter your Telephone Number (Home).';
	}
	
	if (document.applyonline.Telephone_Mobile.value==''){
		ftxt += '\n- Please enter your Telephone Number (Mobile).';
	}
		
	if (document.applyonline.ProfessionalQualifications.value==''){
		ftxt += '\n- Please enter your Professional Qualifications.';
	}
	
	if (document.applyonline.EducationalQualifications.value==''){
		ftxt += '\n- Please enter your Educational Qualifications.';
	}
	
	if (document.applyonline.CurrentEmployer.value==''){
		ftxt += '\n- Please specify the name of your Current Employer.';
	}
	
	if (document.applyonline.PositionCurrentEmployer.value==''){
		ftxt += '\n- Please specify the position with your Current Employment.';
	}	
	
	if (document.applyonline.PreviousEmployer.value==''){
		ftxt += '\n- Please specify the name of your Previous Employer.';
	}
	
	if (document.applyonline.PreviousCurrentEmployer.value==''){
		ftxt += '\n- Please specify the position with your Previous Employment.';
	}	
	
	if (document.applyonline.NoticePeriod.value==''){
		ftxt += '\n- Please select the Notice Period required.';
	}
	
	if (document.applyonline.CurrentSalaryPackage.value==''){
		ftxt += '\n- Please select your Current Salary.';
	}
		
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function checkquickjobsearchform(){
	var ftxt = '';
	
	var btype = false;
	for (var i=0;i<2;i++){
	    if (document.quickjobsearchform.Type[i].checked==true){
	        btype = true;
	    }
	}
	if (btype==false){
	    ftxt += '\n- Please select a Job Type.';
	}
	
	if (ftxt!==''){
		alert('One or more errors were found while submitting this form. The errors found are displayed below.\n' + ftxt + '\n\nPlease correct the above errors and try again.');
		return false;
	}
	else {
		return true;
	}
}

function clearQuickCriteriaField(fieldval){
    if (fieldval=='Please enter your search here...'){
        document.quicksearchform.Criteria.value='';
    }
}

function changeSalary(val){
    selectedIndex = 0;
	var dropDown = document.quickjobsearchform.Salary;	
	var subvalue = "";	
	
	if (dropDown)  {		
		dropDown.length = 0;
		
		if (val=='Temporary'){
		    var salaryarr = new Array('|Any Salary','15-20|£15 - £20 Hourly','2-25|£20 - £25 Hourly','25-30|£25 - £30 Hourly','30-45|£30 - £45 Hourly','45-999999|£45+ Hourly');
		}
		else if(val=='Permanent'){
		    var salaryarr = new Array('|Any Salary','30-40|£30 - £40K Per Annum','40-50|£40 - £50K Per Annum','50-60|£50 - £60K Per Annum','60-70|£60 - £70K Per Annum','70-999999|£70K+ Per Annum')
		}

		for(index=0; index<salaryarr.length; index++)	{
			subvalue = salaryarr[index].split("|");

			if (subvalue.length > 1){						
				dropDown[index] = new Option(subvalue[1],subvalue[0]);
			}
		}	
	}
}