var bState1 = 0;
var bCity1 = 0;
var bPhoneUS1 = 0;
var bState2 = 0;
var bCity2 = 0;
var num = 1;
var hobbyRow = 1;
var hobby_Oth_Act = 1;
var checkphone;
var checkZipFlag = 0;
	function expand(obj, item){
		if(document.getElementById(obj).style.display == 'block'){
			document.getElementById(obj).style.display='none';
			document.getElementById('img_'+obj).src='images/xplus.gif';
		} else {
			document.getElementById(obj).style.display='block';
			document.getElementById('img_'+obj).src='images/xminus.gif';
		}
	}
	function check_aff_code(){
		var code = document.frmProfile.aff_code.value;
		if(code.length > 0){
			var arrVal = procRequest("getData.php?mode=verify_aff_code&code="+ code);
			if(arrVal == "0"){
				document.getElementById('aff_code_status').innerHTML = 'invalid affiliiation code';
				document.frmProfile.aff_code.value = '';
			} else {
				document.getElementById('aff_code_status').innerHTML = '';
			}
		} else {
			document.getElementById('aff_code_status').innerHTML = '';
			document.frmProfile.aff_code.value = '';
		}
	}
	function viewdetail(url, id, objval){
		if(id == "8"){
			popupLoginRegister();
		} else {
			window.open(url, "viewdetail", "status=1,toolbar=1,location=1,menubar=1,resizable=1,scrollbars=1");
		}
	}
	function viewdetail2(url, id, objval){
		if(id == "8"){
			popupLoginRegister();
		} else {
			var sUrl;
			sUrl = "check_rate_ability.php?id="+objval;
			var arrVal = procRequest2(sUrl);
			if(arrVal == "currentuser"){
				alert("You cannot rate yourself.");
			} else if(arrVal == "already_rated"){
				alert("You have already rated this person..");
			} else if(arrVal.substring(0,7) == "pending"){
				window.open(url + "&reference_id=" + arrVal.substring(8), "rating", "status=1,toolbar=1,location=1,menubar=1,resizable=1,scrollbars=1");
			} else {
				sUrl = "getData.php?mode=user_contact_limit&userid=" + objval;
				var arrVal = procRequest(sUrl);
				if(arrVal == "1"){
					popupExpired();
				} else if(arrVal == "2"){
					popupWorker();
				} else if(arrVal == "3"){
					popupGuest();
				} else {
					window.open(url, "rating", "status=1,toolbar=1,location=1,menubar=1,resizable=1,scrollbars=1");
				}
			}
		}
	}
	function request_info(userid, id){
		if(id == "8"){
			popupLoginRegister();
		} else {
			sUrl = "getData.php?mode=user_contact_limit&userid=" + userid;
			var arrVal = procRequest(sUrl);
			if(arrVal == "1"){
				popupExpired();
			} else if(arrVal == "2"){
				popupWorker();
			} else if(arrVal == "3"){
				popupGuest();
			} else {
				window.open('sendemail.php?userid=' + userid, 'emailbox', 'width=560,height=450,scrollbars=0');
			}
		}
	}
	function sms(userid, id){
		if(id == "8"){
			popupLoginRegister();
		} else {
			sUrl = "getData.php?mode=user_contact_limit&userid=" + userid;
			var arrVal = procRequest(sUrl);
			if(arrVal == "1"){
				popupExpired();
			} else if(arrVal == "2"){
				popupWorker();
			} else if(arrVal == "3"){
				popupGuest();
			} else {
				var sms_limit = procRequest("getData.php?mode=bulk_message_limit");
				if(sms_limit <= 0){
					popupBulkText();
				} else {
					window.open('sendsms.php?userid=' + userid, 'smsbox', 'width=500,height=400,scrollbars=0');
				}
			}
		}
	}
	function email_valid(obname){
		if(!isEmail(obname)){
			return false;
		}
	}
function check_B_All(chk){
	var F = document.frmProfile;
	if(chk.checked){
		for(var i = 0; i < F.cntBiz.length - 1; i++){
			F.cntBiz[i].checked = true;
		}
	} else {
		for(var i = 0; i < F.cntBiz.length; i++){
			F.cntBiz[i].checked = false;
		}
		document.getElementById("txtCntBizOther").value = "";
		document.getElementById("cntBizOther").style.display = "none";
	}
}
function validate_USphoneformat(field1, field2, field3){
	if(isEmpty(field1.value) && isEmpty(field2.value) && isEmpty(field3.value)){
		return 0;
	}
	if(field1.value.length < 3 || field2.value.length < 3 || field3.value.length < 4){
		return 2;
	}
	return 1;
}
function makeActive_ref(chk,usr_tech_id){
	if(chk.value == "1"){
		act = 1;
	} else {
		act = 0;
	}
	document.frmProfile.choice.value = "review_ref_status";
	sUrl = "register.cb.php?choice=review_ref_status&reference_id="+usr_tech_id+"&act="+act;
	window.location = sUrl;
}
function ToogledivTag1(dispDiv,status,txtdispDiv){
	document.getElementById(dispDiv).style.display = status;
	if(status == "block"){
		document.getElementById(txtdispDiv).style.display = "block";
	} else {
		document.getElementById(txtdispDiv).value = "";
		document.getElementById(txtdispDiv).style.display = "none";
	}
	if(document.frmProfile.contactOpt1){
		document.frmProfile.contactOpt1[0].disabled=false;
	}
}
function removeBizCntrow(divID){
	var addBizCnt = document.getElementById("addBizCnt");
	for (i=0; i<addBizCnt.childNodes.length; i++){
		if (addBizCnt.childNodes[i].nodeName == divID){
		if(window.ActiveXObject){
		if(addBizCnt.childNodes.length == 1){
		document.getElementById("added_bizCnt").style.display = "none";
		}
		} else{
			if(addBizCnt.childNodes.length == 2){
			document.getElementById("added_bizCnt").style.display = "none";
			}
		}
		addBizCnt.removeChild(addBizCnt.childNodes[i]);
		}
	}
}
function license_disp(selOpt){
	var F = document.frmProfile;
	for(var i = 0; i < F.lic_Info.length; i++){
		F.lic_Info[i].checked = false;
	}
	F.txtDrivingLic.value = "";
	F.txtDrivingLic.style.display = "none";
	F.txtContractLic.value = "";
	F.txtContractLic.style.display = "none";
	F.txtBizLic.value = "";
	F.txtBizLic.style.display = "none";
	var added_otherlic_rowno = document.getElementById("added_Otherlic_rowno").value;
	for(var i = 1; i <= added_otherlic_rowno; i++){
		var newOtherTit = "other_Lic_Tit"+ i;
		var newtxtOtherLic = "txt_Other_Lic"+ i;
		document.getElementById(newOtherTit).value = "Title"+ i + " #:";
		document.getElementById(newOtherTit).disabled = true;
		document.getElementById(newtxtOtherLic).value = "";
		if(document.getElementById(newtxtOtherLic).style.display == "block"){
			document.getElementById(newtxtOtherLic).style.display = "none";
		}
	}
	if(selOpt.value == 1){
		document.getElementById("license_Display").style.display = "block";
	} else if(selOpt.value == 0){
		document.getElementById("license_Display").style.display = "none";
	}
}
var bState = 0;
var bPState = 0;
var bCity = 0;
function countryChange1(obCoun,obSt,txtSt){
	if(obCoun.value == 1 || obCoun.value == 0){
		obSt.style.display = "block";
		txtSt.style.display = "none";
		bPState = 0;
	}else{
		obSt.style.display = "none";
		txtSt.style.display = "block";
		bPState = 1;
	}
}
function countryChange(obCoun){
	var obSt = document.getElementById('state1');
	var txtSt = document.getElementById('txtState1');
	var obCity = document.getElementById('city1');
	var txtCity = document.getElementById('txtCity1');
	if(obCoun.value == 1 || obCoun.value == 0){
		obSt.style.display = "block";
		txtSt.style.display = "none";
		obCity.style.display = "block";
		txtCity.style.display = "none";
		bState = 0;
		bCity = 0;
	}else{
		obSt.style.display = "none";
		txtSt.style.display = "block";
		obCity.style.display = "none";
		txtCity.style.display = "block";
		bState = 1;
		bCity = 1;
	}
}
var checkflag = "false";
function checkAll2() {
	if (checkflag == "false") {
		for (i = 0; i < document.frmBody.length; i++) {
			document.frmBody[i].checked = true;
		}
		checkflag = "true";
		document.getElementById("dynamic_select").innerHTML ='Deselect ALLl';
		} else {
		for (i = 0; i < document.frmBody.length; i++) {
			document.frmBody[i].checked = false;
		}
		checkflag = "false";
		document.getElementById("dynamic_select").innerHTML ='Select All';
	}
}
function check_lang_all_status(chk,chkid,chk_all){
	F = document.frmProfile;
	chkid = "F." + chkid;
	chkid = eval(chkid);
	chk_all = "F." + chk_all;
	chk_all = eval(chk_all);
	var iCnt = 0;
	if(chk.checked){
		for(var i = 0; i < chkid.length; i++){
			if(!chkid[i].checked){
				iCnt++;
			}
		}
		if(!iCnt){
			chk_all.checked = true;
		}
	} else {
		chk_all.checked = false;
	}
}
function get_ExtHobbyAct(obInd,sp_chk_name,sp_chk_id,ext_usr_hobby_id){
	var F = document.frmProfile;
	arrTemp = sp_chk_name.split("_");
	if(arrTemp[0] != 'OTHER'){
	arrInd = obInd.split(":");
	var sUrl = "getData.php?mode=getHobbyAct&hid="+arrInd[0];
	var arrVal = procRequest(sUrl);
	} else {
	var ext_Oth_hobby_row_cnt = document.getElementById("added_OtherHobby_rowno").value;
	ext_Oth_hobby_row_cnt++;
	sp_chk_name = sp_chk_name+"_"+ext_Oth_hobby_row_cnt;
	document.getElementById("added_OtherHobby_rowno").value = ext_Oth_hobby_row_cnt;
	}
	var arrHobby_Tmp = procRequest("getData.php?mode=getExt_HobbySkills&usr_hobby_id="+ext_usr_hobby_id);
	if(document.getElementById("hobbyAct_Disp").style.display == "none"){
	document.getElementById("hobbyAct_Disp").style.display = "block";
	}
	var arrUnits;
	var expertise = "";
	var hobby_row_cnt = document.getElementById("hobby_row_cnt");
	var num2 = hobby_row_cnt.value;
	num2++;
	var expertise_List = document.getElementById("hobbyAct_List1");
	var exp_List_length = expertise_List.childNodes.length;
	var div_name = "div_"+sp_chk_name;
	div_name = div_name.toUpperCase();
	var iDiv =0;
	for (i=0; i<exp_List_length; i++){
		if (expertise_List.childNodes[i].nodeName == div_name){
			iDiv++;
		}
	}
	if (!iDiv){
		var newdivname = "added_Hobby_Act" + num2;
		var new_other_div = "addedHobby_Other" + num2;
		idref1 = "chk_"+newdivname;
		var newdiv = document.createElement(div_name);
		if(arrTemp[0] == 'OTHER'){
			arrTmp = obInd.split("``");
			expertise = expertise +'<div style="width:224px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b">';
			expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_hobby_id]" value="'+ext_usr_hobby_id+'">';
			expertise = expertise +'<tr><td class="td_ajaxbox_b" width="220" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" onclick="removeChildRow_hobby(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+arrTmp[1]+'</LABEL></strong></td></tr>';
			expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">';
	} else {
		expertise = expertise +'<div style="width:224px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b">';
	expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_hobby_id]" value="'+ext_usr_hobby_id+'">';
	expertise = expertise +'<tr><td class="td_ajaxbox_b" width="220" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" checked onclick="removeChildRow_hobby(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
	if(isEmpty(arrVal)){
	expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">';
	} else {
	expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">'
	for(var i=0; i < arrVal.length; i++){
	arrUnits = arrVal[i].split("-");
	expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
	expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
	expertise = expertise +'" name="'+newdivname+'[]"';
	for(var j=0; j < arrHobby_Tmp.length; j++){
	if(arrVal[i] == arrHobby_Tmp[j]){
	expertise = expertise + ' checked';
	}
	}
	expertise = expertise +'>&nbsp;'+arrUnits[1]+'</LABEL>';
	}
	expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
	expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
	}
	}
	expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
	expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
	expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_HobbyAct_Other" value="" onclick="add_Hobby_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
	expertise = expertise +'</DIV></td></tr></table></div>';
	newdiv.innerHTML =expertise;
	expertise_List.appendChild(newdiv);
	hobby_row_cnt.value = num2;
	for(var j=0; j < arrHobby_Tmp.length; j++){
	arrOth_Exp = arrHobby_Tmp[j].split("-");
	if(arrOth_Exp[0] == "Other"){
	ext_Hobby_Act_Row(new_other_div,newdivname,arrOth_Exp[1]);
	}
	}
	} else {
		return false;
	}
}
function payRateToggle(chk,divID,lowPrice,highPrice){
	if(chk.checked){
		document.getElementById(divID).style.display = "block";
	} else {
		document.getElementById(divID).style.display = "none";
		document.getElementById(lowPrice).value = "";
		document.getElementById(highPrice).value = "";
	}
}
function get_ExtCompAct(obInd,sp_chk_name,sp_chk_id,ext_usr_comp_id){
var F = document.frmProfile;
arrTemp = sp_chk_name.split("_");
if(arrTemp[0] != 'OTHER'){
arrInd = obInd.split(":");
var sUrl = "getData.php?mode=getCompAct&cat_id="+arrInd[0];
var arrVal = procRequest(sUrl);
} else {
var ext_Oth_comp_row_cnt = document.getElementById("added_OtherComp_rowno").value;
ext_Oth_comp_row_cnt++;
sp_chk_name = sp_chk_name+"_"+ext_Oth_comp_row_cnt;
document.getElementById("added_OtherComp_rowno").value = ext_Oth_comp_row_cnt;
}
var arrComp_Tmp = procRequest("getData.php?mode=getExt_CompSkills&usr_comp_id="+ext_usr_comp_id);
if(document.getElementById("compAct_Disp").style.display == "none"){
document.getElementById("compAct_Disp").style.display = "block";
}
var arrUnits;
var expertise = "";
var computer_row_cnt = document.getElementById("comp_row_cnt");
var num2 = computer_row_cnt.value;
num2++;
var expertise_List = document.getElementById("compAct_List1");
var exp_List_length = expertise_List.childNodes.length;
var div_name = "div_"+sp_chk_name;
div_name = div_name.toUpperCase();
var iDiv =0;
for (i=0; i<exp_List_length; i++){
if (expertise_List.childNodes[i].nodeName == div_name){
iDiv++;
}
}
if (!iDiv){
var newdivname = "added_Comp_Act" + num2;
var new_other_div = "addedComp_Other" + num2;
idref1 = "chk_"+newdivname;
var newdiv = document.createElement(div_name);
if(arrTemp[0] == 'OTHER'){
arrTmp = obInd.split("``");
expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b">';
expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_comp_id]" value="'+ext_usr_comp_id+'">';
expertise = expertise +'<tr><td class="td_ajaxbox_b" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" onclick="removeChildRow(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+arrTmp[1]+'</LABEL></strong></td></tr>';
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="215"><DIV class="div_ajaxbox">';
} else {
expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b">';
expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_comp_id]" value="'+ext_usr_comp_id+'">';
expertise = expertise +'<tr><td class="td_ajaxbox_b" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" checked onclick="removeChildRow(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
if(isEmpty(arrVal)){
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="215"><DIV class="div_ajaxbox">';
} else {
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="215"><DIV class="div_ajaxbox">'
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
expertise = expertise +'" name="'+newdivname+'[]"';
for(var j=0; j < arrComp_Tmp.length; j++){
if(arrVal[i] == arrComp_Tmp[j]){
expertise = expertise + ' checked';
}
}
expertise = expertise +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
}
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
expertise = expertise +'</DIV></td></tr></table></div>';
newdiv.innerHTML =expertise;
expertise_List.appendChild(newdiv);
computer_row_cnt.value = num2;
for(var j=0; j < arrComp_Tmp.length; j++){
arrOth_Exp = arrComp_Tmp[j].split("-");
if(arrOth_Exp[0] == "Other"){
ext_Comp_Act_Row(new_other_div,newdivname,arrOth_Exp[1]);
}
}
} else {
return false;
}
}
function toggle(arg){
	if(arg == "milesAway"){
		document.getElementById("state_Div").style.display = "none";
		document.getElementById("depend_on_state").style.display = "none";
		document.getElementById("mile_Div").style.display = "block";
		document.getElementById("zip_Div").style.display = "block";
	} else if(arg == "stateCity"){
		document.getElementById("mile_Div").style.display = "none";
		document.getElementById("zip_Div").style.display = "none";
		document.getElementById("state").value = 0;
		clearList1(document.getElementById("city"));
		document.getElementById("state_Div").style.display = "block";
		document.getElementById("depend_on_state").style.display = "block";
	} else if(arg == "zipCode"){
		document.getElementById("mile_Div").style.display = "none";
		document.getElementById("state_Div").style.display = "none";
		document.getElementById("depend_on_state").style.display = "none";
		document.getElementById("zip_Div").style.display = "block";
	} else {
		document.getElementById("zip_Div").style.display = "none";
		document.getElementById("mile_Div").style.display = "none";
		document.getElementById("state_Div").style.display = "none";
		document.getElementById("depend_on_state").style.display = "none";
	}
}
function get_Ext_Expertise(Ind,sp_chk_name,chkid,look_ind_det_id){
look_ind_det_id = look_ind_det_id.split('_iclik_');
get_year = look_ind_det_id[1];
look_ind_det_id = look_ind_det_id[0];
if(get_year == "-1"){
get_year_string = "limited";
} else if(get_year == "0"){
get_year_string = "Years of Experience";
} else {
get_year_string = get_year;
}
var F = document.frmProfile;
arrCat = Ind.split(":");
var sp_chk = "F."+sp_chk_name;
sp_chk = eval(sp_chk);
if(sp_chk.checked){
if(chkid != ''){
var str = "F."+chk_id;
str = eval(str);
var iCnt = 0;
for(var i = 0; i < str.length; i++){
if(!str[i].checked){
iCnt++;
}
}
if(!iCnt){
document.getElementById("specialtyAll").checked = true;
}
} else {
var other_sp_txt = "F.txt_"+sp_chk_name;
other_sp_txt = eval(other_sp_txt);
}
arrTemp = sp_chk_name.split("_");
if(arrTemp[0] != 'OTHER'){
arrInd = sp_chk.value.split(":");
var sUrl = "getData.php?mode=getAllExpertise&catid="+arrInd[0];
var arrVal = procRequest(sUrl);
}
var arrExp_Tmp = procRequest("getData.php?mode=getLook_ind_expertise&look_ind_det_id="+look_ind_det_id);
var arrExperience = procRequest("getData.php?mode=getLook_ind_exp_details&look_ind_det_id="+look_ind_det_id);
if(document.getElementById("expertise_Disp").style.display == "none"){
document.getElementById("expertise_Disp").style.display = "block";
}
var arrUnits;
var expertise = "";
var specialty_row_cnt = document.getElementById("specialty_row_cnt");
var num2 = specialty_row_cnt.value;
num2++;
var expertise_List = document.getElementById("expertise_List1");
var exp_List_length = expertise_List.childNodes.length;
var div_name = "div_"+sp_chk_name;
div_name = div_name.toUpperCase();
var iDiv =0;
for (i=0; i<exp_List_length; i++){
if (expertise_List.childNodes[i].nodeName == div_name){
iDiv++;
}
}
if (!iDiv){
var newdivname = "added_SP_Expertise"+ num2;
var new_other_div = "added_Exp_Other" + num2;
new_other_div = new_other_div.toUpperCase();
var newdiv = document.createElement(div_name);
idref1 = "chk_"+newdivname;
expertise = expertise +'<div><table border="1" cellpadding="2" cellspacing="" class="bodytext" width="200">';
expertise = expertise +'<input type="hidden" name="'+newdivname+'[look_ind_det_id]" value="'+look_ind_det_id+'">';
if(arrTemp[0] != 'OTHER'){
var rUrl = "getData.php?mode=get_Ext_Ref_ID&opt=sp&sp_val="+sp_chk.value;
} else {
var rUrl = "getData.php?mode=get_Ext_Ref_ID&opt=oth_sp&look_ind_det_id="+look_ind_det_id;
}
var ref_opt = procRequest(rUrl);
if(arrTemp[0] == 'OTHER'){
expertise = expertise +'<tr><td height="25" align="center" width="180" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value=\"Other:'+arrCat[0]+'``'+other_sp_txt.value+'\" onclick="removeChildRow_exp(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+other_sp_txt.value+'</LABEL></strong></td></tr>';
expertise = expertise + '<tr><td height="25" align="left" valign="top"><DIV style="BORDER-RIGHT: #d4d0c8 1px solid; BORDER-TOP: #404040 1px solid; BACKGROUND: #fff; OVERFLOW: auto; BORDER-LEFT: #404040 1px solid; BORDER-BOTTOM: #d4d0c8 1px solid; HEIGHT: 150px;width:94%;">';
} else {
expertise = expertise +'<tr><td height="25" align="center" valign="top" bgcolor="#F1F0F0"><input id="sp_'+newdivname+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+sp_chk.value+'" onclick="removeChildRow_exp(\''+sp_chk_name+'\');" checked>&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
expertise = expertise + '<tr><td height="25" align="left" valign="top"><DIV style="BORDER-RIGHT: #d4d0c8 1px solid; BORDER-TOP: #404040 1px solid; BACKGROUND: #fff; OVERFLOW: auto; BORDER-LEFT: #404040 1px solid; BORDER-BOTTOM: #d4d0c8 1px solid; HEIGHT: 150px;width:94%;">';
if(!isEmpty(arrVal)){
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
expertise = expertise +'" name="'+newdivname+'[]"';
for(var j=0; j < arrExp_Tmp.length; j++){
if(arrVal[i] == arrExp_Tmp[j]){
expertise = expertise + ' checked';
}
}
expertise = expertise +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\',document.getElementById(\''+newdivname+'_Other\'));">&nbsp;All</LABEL>';
}
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_HobAct_Other" value="" onclick="add_Exp_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
expertise = expertise +'</DIV></td></tr>';
expertise = expertise + '<tr><td class="td_years_of_exp">&nbsp;<select class="cmb_years_of_exp" id= sp_'+newdivname+'_years name= '+newdivname+'_years><option value = '+get_year+' checked>'+get_year_string+'</option><option value ="0">Years of Experience</option><option value = "-1">limited</option><option value = "+1">+1</option><option value = "2-3">2-3</option><option value = "3-5">3-5</option><option value = "5-7">5-7</option><option value = "7-10">7-10</option><option value = "+10">+10</option><option value ="+15">+15</option><option value ="+20">+20</option></select></td></tr>';
expertise = expertise +'</table></div>';
newdiv.innerHTML =expertise;
expertise_List.appendChild(newdiv);
specialty_row_cnt.value = num2;
var ext_specialty_row_cnt = document.getElementById("ext_specialty_row_cnt");
var ext_sp_no = ext_specialty_row_cnt.value;
ext_sp_no++;
ext_specialty_row_cnt.value = ext_sp_no;
for(var j=0; j < arrExp_Tmp.length; j++){
arrOth_Exp = arrExp_Tmp[j].split("-");
if(arrOth_Exp[0] == "Other"){
ext_Exp_Row(new_other_div,newdivname,arrOth_Exp[1]);
}
}
category = arrCat[1];
category = category.toLowerCase();
category = category.replace(/\s/g,"");
if(category == "domestichelp"){
document.getElementById("domestic_Disp").style.display = "block";
} else {
document.getElementById("domestic_Disp").style.display = "none";
}
document.getElementById("added_Industry_val").value = Ind;
if(!isEmpty(arrExperience)){
arrExperience = arrExperience.toString();
arrExpr_Tmp = arrExperience.split("-");
}
} else {
return false;
}
} else {
removeChildRow_exp(sp_chk_name);
}
}
function gotopage(page){
document.frm2Search.page.value = page;
document.frm2Search.submit();
}
function Go_for_change(v){
if(v != "HH"){
document.getElementById("industry_info").style.display = "block";
document.getElementById("not_for_hh").style.display = "block";
document.getElementById("for_hh").style.display = "none";
} else {
document.getElementById("industry_info").style.display = "none";
document.getElementById("not_for_hh").style.display = "none";
document.getElementById("for_hh").style.display = "block";
}
if(v=="Other"){
document.getElementById("UsernamedispNameOther").style.display = "block";
} else {
document.getElementById("UsernamedispNameOther").style.display = "none";
}
}
function get_ExtTechAct(obInd,sp_chk_name,sp_chk_id,ext_usr_tech_id){
var F = document.frmProfile;
arrTemp = sp_chk_name.split("_");
if(arrTemp[0] != 'OTHER'){
arrInd = obInd.split(":");
var sUrl = "getData.php?mode=getTechAct&cat_id="+arrInd[0];
var arrVal = procRequest(sUrl);
} else {
var ext_Oth_tech_row_cnt = document.getElementById("added_OtherTech_rowno").value;
ext_Oth_tech_row_cnt++;
sp_chk_name = sp_chk_name+"_"+ext_Oth_tech_row_cnt;
document.getElementById("added_OtherTech_rowno").value = ext_Oth_tech_row_cnt;
}
var arrTech_Tmp = procRequest("getData.php?mode=getExt_TechSkills&usr_tech_id="+ext_usr_tech_id);
if(document.getElementById("techAct_Disp").style.display == "none"){
document.getElementById("techAct_Disp").style.display = "block";
}
var arrUnits;
var expertise = "";
var technical_row_cnt = document.getElementById("technical_row_cnt");
var num2 = technical_row_cnt.value;
num2++;
var expertise_List = document.getElementById("techAct_List1");
var exp_List_length = expertise_List.childNodes.length;
var div_name = "div_"+sp_chk_name;
div_name = div_name.toUpperCase();
var iDiv =0;
for (i=0; i<exp_List_length; i++){
if (expertise_List.childNodes[i].nodeName == div_name){
iDiv++;
}
}
if (!iDiv){
var newdivname = "added_Tech_Act" + num2;
var new_other_div = "addedTech_Other" + num2;
idref1 = "chk_"+newdivname;
var newdiv = document.createElement(div_name);
if(arrTemp[0] == 'OTHER'){
arrTmp = obInd.split("``");
expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox">';
expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_tech_id]" value="'+ext_usr_tech_id+'">';
expertise = expertise +'<tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" onclick="removeChildRow_tech(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+arrTmp[1]+'</LABEL></strong></td></tr>';
expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
} else {
expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox">';
expertise = expertise +'<input type="hidden" name="'+newdivname+'[ext_usr_tech_id]" value="'+ext_usr_tech_id+'">';
expertise = expertise +'<tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd+'" checked onclick="removeChildRow_tech(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
if(isEmpty(arrVal)){
expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
} else {
expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">'
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
expertise = expertise +'" name="'+newdivname+'[]"';
for(var j=0; j < arrTech_Tmp.length; j++){
if(arrVal[i] == arrTech_Tmp[j]){
expertise = expertise + ' checked';
}
}
expertise = expertise +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
}
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_TechAct_Other" value="" onclick="add_Tech_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
expertise = expertise +'</DIV></td></tr></table></div>';
newdiv.innerHTML =expertise;
expertise_List.appendChild(newdiv);
technical_row_cnt.value = num2;
for(var j=0; j < arrTech_Tmp.length; j++){
arrOth_Exp = arrTech_Tmp[j].split("-");
if(arrOth_Exp[0] == "Other"){
ext_Tech_Act_Row(new_other_div,newdivname,arrOth_Exp[1]);
}
}
} else {
return false;
}
}
function setRatingDial(rating,uid){
	var ovrate = document.getElementById('overall_rating_disp_'+uid);
	if(rating != "NA" && rating != "") {
		ovrate.style.display="block";
		rating=parseFloat(rating);
		if(rating==0){
			ovrate.innerHTML = '<img src="images/initial-overall-rating.jpg" width="60" alt="no rating" title="' + rating + ' no rating" />';
		}else if(rating>0 && rating<2){
			ovrate.innerHTML = '<img src="images/1-2.jpg" width="60" alt="Inadequete to poor" title="' + rating + ' Inadequete to poor"/>';
		}else if(rating>=2 && rating<3){
			ovrate.innerHTML = '<img src="images/2-3.jpg" width="60" alt="poor to average" title="' + rating + ' poor to average" />';
		}else if(rating>=3 && rating<4){
			ovrate.innerHTML = '<img src="images/3-4.jpg" width="60" alt="Average good" title="' + rating + ' Average good" />';
		}else if(rating>=4 && rating<5){
			ovrate.innerHTML = '<img src="images/4-51.jpg" width="60" alt="good excellent" title="' + rating + ' good excellent" />';
		}else if(rating==5){
			ovrate.innerHTML = '<img src="images/4-51.jpg" width="60" alt="good excellent" title="' + rating + ' good excellent" />';
		}
	}else{
		ovrate.innerHTML = "";
		ovrate.style.display="none";
		var lblUserrating=document.getElementById('lblUserRating_'+uid);
		lblUserrating.innerHTML="";
	}
}
function check_rate_ability(objval){
	var sUrl;
	sUrl = "check_rate_ability.php?id="+objval;
	var arrVal = procRequest(sUrl);
	if(arrVal == "currentuser"){
	alert("You cannot rate yourself.");
	return false;
	}
	if(arrVal == "already_rated"){
	alert("You have already rated this person..");
	return false;
	}
	return true;
}
function getHobbyAct(obInd,sp_chk_name,sp_chk_id){
if(obInd.checked){
var F = document.frmProfile;
if(sp_chk_id != ''){
var str = "F."+sp_chk_id;
str = eval(str);
var iCnt = 0;
for(var i = 0; i < str.length; i++){
if(!str[i].checked){
iCnt++;
}
}
if(!iCnt){
	if(document.getElementById("hobbySubCat_All"))
		document.getElementById("hobbySubCat_All").checked = true;
}
}
arrTemp = sp_chk_name.split("_");
if(arrTemp[0] != 'OTHER'){
arrInd = obInd.value.split(":");
var sUrl = "getData.php?mode=getHobbyAct&hid="+arrInd[0];
var arrVal = procRequest(sUrl);
}
if(document.getElementById("hobbyAct_Disp").style.display == "none"){
document.getElementById("hobbyAct_Disp").style.display = "block";
}
var arrUnits;
var expertise = "";
var hobby_row_cnt = document.getElementById("hobby_row_cnt");
var num2 = hobby_row_cnt.value;
num2++;
var expertise_List = document.getElementById("hobbyAct_List1");
var exp_List_length = expertise_List.childNodes.length;
var div_name = "div_"+sp_chk_name;
div_name = div_name.toUpperCase();
var iDiv =0;
for (i=0; i<exp_List_length; i++){
if (expertise_List.childNodes[i].nodeName == div_name){
iDiv++;
}
}
if (!iDiv){
var newdivname = "added_Hobby_Act" + num2;
var new_other_div = "addedHobby_Other" + num2;
idref1 = "chk_"+newdivname;
var newdiv = document.createElement(div_name);
if(arrTemp[0] == 'OTHER'){
expertise = expertise +'<div style="width:224px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b"><tr><td class="td_ajaxbox_b" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_hobby(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">';
} else {
expertise = expertise +'<div style="width:224px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b"><tr><td height="25" align="center" width="190" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow_hobby(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
if(isEmpty(arrVal)){
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">';
} else {
expertise = expertise + '<tr><td class="td_ajaxbox_b" width="205"><DIV class="div_ajaxbox">'
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
}
}
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_HobbyAct_Other" value="" onclick="add_Hobby_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
expertise = expertise +'</DIV></td></tr></table></div>';
newdiv.innerHTML =expertise;
if(exp_List_length > 9){
newdiv.style.display = "none";
} else {
newdiv.style.display = "block";
}
expertise_List.appendChild(newdiv);
hobby_row_cnt.value = num2;
} else {
return false;
}
} else {
removeChildRow_hobby(sp_chk_name);
}
}
function getHobbySubCat(obInd){
if(obInd.value){
if(obInd.value != 0){
var getSkill = 1;
arrInd = obInd.value.split(":");
} else {
var getSkill = 0;
}
} else {
getSkill = 1;
arrInd = obInd.split(":");
}
if (getSkill != 0)
{
var sUrl = "getData.php?mode=getHobby&pid="+arrInd[0];
var arrVal = procRequest(sUrl);
document.getElementById("cbo_SubHobby").style.display = "none";
document.getElementById("hobby_SubCat_lst").style.display = "block";
var arrUnits;
var hobbySubCat = "";
var obElm = document.getElementById("hobby_SubCat_lst");
var expertise_List = document.getElementById("hobbyAct_List1");
var exp_List_length = expertise_List.childNodes.length;
if(!isEmpty(arrVal)){
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
industry_name = arrInd[1].replace(/\s/g,"");
chk_id = "chk_"+arrInd[0]+"_"+industry_name;
chk_id = chk_id.toUpperCase();
specialty_name = arrUnits[1].replace(/\s/g,"")
chk_name = specialty_name+"_"+arrInd[0];
chk_name = chk_name.toUpperCase();
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
hobbySubCat = hobbySubCat +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
hobbySubCat = hobbySubCat +'" name="'+chk_name+'" onclick="getHobbyAct(this,\''+chk_name+'\',\''+chk_id+'\');"';
if(exp_List_length > 0){
var div_name = "div_"+chk_name;
div_name = div_name.toUpperCase();
for (j=0; j<exp_List_length; j++){
if (expertise_List.childNodes[j].nodeName == div_name){
hobbySubCat = hobbySubCat +' checked';
}
}
}
hobbySubCat = hobbySubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx';
hobbySubCat = hobbySubCat +'><INPUT id="hobbySubCat_All" type="checkbox" class="noborder" value="All" name="'+chk_name+'" onclick="check_Hobby_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
}
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="hobby_Other_disp" style="display:none;"></div></LABEL>';
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx';
hobbySubCat = hobbySubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_hobby_Other" value="" onclick="add_Hobby_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
obElm.innerHTML = hobbySubCat;
if(exp_List_length > 0){
for (k=0; k<exp_List_length;k++){
myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
myRegexp = eval(myRegexp);
if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
ext_Hobby_Row(arrInd[0],rowno[1]);
}
}
}
} else {
document.getElementById("cbo_SubHobby").style.display = "block";
document.getElementById("hobby_SubCat_lst").style.display = "none";
}
}
function ToogledivTag2(chk){
	if(chk.checked){
	document.getElementById("other_select_disp").style.display = "block";
	} else {
	document.getElementById("other_select_disp").style.display = "none";
	}
}
function get_primary_info(ob){
	if(ob.checked){
	document.getElementById('primary_account_info').style.display = "block";
	} else {
	document.getElementById('primary_account_info').style.display = "none";
	}
}
function get_post_option(ob){
	if(ob.value == "post_email"){
	document.getElementById('post_email_row').style.display = "block";
	document.getElementById('post_phone_row').style.display = "none";
	document.getElementById('post_other_row').style.display = "none";
	} else if(ob.value == "post_phone") {
	document.getElementById('post_email_row').style.display = "none";
	document.getElementById('post_phone_row').style.display = "block";
	document.getElementById('post_other_row').style.display = "none";
	} else if(ob.value == "post_other"){
	document.getElementById('post_email_row').style.display = "none";
	document.getElementById('post_phone_row').style.display = "none";
	document.getElementById('post_other_row').style.display = "block";
	}
}
function getSelectedValue(){
	var job= parseInt(document.frmProfile.job_project_quality[document.frmProfile.job_project_quality.selectedIndex].value);
	var rel= parseInt(document.frmProfile.reliability[document.frmProfile.reliability.selectedIndex].value);
	var cred=parseInt(document.frmProfile.credibility[document.frmProfile.credibility.selectedIndex].value);
	var att=parseInt(document.frmProfile.attitude[document.frmProfile.attitude.selectedIndex].value);
	var over=parseInt(document.frmProfile.overall_value[document.frmProfile.overall_value.selectedIndex].value);
	document.getElementById('totRate').innerHTML = (job+rel+cred+att+over)/5;
	document.getElementById('totRate1').innerHTML = (job+rel+cred+att+over)/5;
	var img=parseFloat((job+rel+cred+att+over)/5);
	var img1=parseFloat((job+rel+cred+att+over)/5);
	if(img <=2 ){
		document.getElementById('imgRate').innerHTML = '<img src="images/1-2.jpg" />';
		document.getElementById('rate45').innerHTML='Inadequete to poor';
	}else if(img<=3){
		document.getElementById('imgRate').innerHTML = '<img src="images/2-3.jpg" />';
		document.getElementById('rate45').innerHTML='poor to average';
	}else if(img<=4){
		document.getElementById('imgRate').innerHTML = '<img src="images/3-4.jpg" />';
		document.getElementById('rate45').innerHTML='Average good';
	}else if(img>4){
		document.getElementById('imgRate').innerHTML = '<img src="images/4-51.jpg" />';
		document.getElementById('rate45').innerHTML='good excellent';
	}
	if(img1 ==1){
		document.getElementById('img25').innerHTML = '<img src="images/rating.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==1.1 || img1 ==1.2 || img1 ==1.3 || img1 ==1.4 ||img1 ==1.5 || img1 ==1.6 ||img1 ==1.7 || img1 ==1.8 || img1 ==1.9 ){
		document.getElementById('img25').innerHTML = '<img src="images/1-5.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==2){
		document.getElementById('img25').innerHTML = '<img src="images/2.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==2.1 || img1 ==2.2 || img1 ==2.3 || img1 ==2.4 ||img1 ==2.5 || img1 ==2.6 ||img1 ==2.7 || img1 ==2.8 || img1 ==2.9 ){
		document.getElementById('img25').innerHTML = '<img src="images/2-5.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==3.0){
		document.getElementById('img25').innerHTML = '<img src="images/3.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==3.1 || img1 ==3.2 || img1 ==3.3 || img1 ==3.4 ||img1 ==3.5 || img1 ==3.6 ||img1 ==3.7 || img1 ==3.8 || img1 ==3.9 ){
		document.getElementById('img25').innerHTML = '<img src="images/3-5.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==4.0){
		document.getElementById('img25').innerHTML = '<img src="images/4.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==4.1 || img1 ==4.2 || img1 ==4.3 || img1 ==4.4 ||img1 ==4.5 || img1 ==4.6 ||img1 ==4.7 || img1 ==4.8 || img1 ==4.9 ){
		document.getElementById('img25').innerHTML = '<img src="images/4-5.jpg" alt="" width="42" height="300" />';
	}else if(img1 ==5.0){
		document.getElementById('img25').innerHTML = '<img src="images/5.jpg" alt="" width="42" height="300" />';
	}
}
function getSpecialty3(obInd){
	if(obInd.value == "_iclikin_other_"){
		document.getElementById("add_new_industry").style.display = "block";
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "none";
		return false;
	} else {
		document.getElementById("add_new_industry").style.display = "none";
	}
	var expertise_List1 = document.getElementById("expertise_List1");
	if(expertise_List1.childNodes.length> 0){
		removeInd_AllChildNode();
		document.getElementById("specialty_row_cnt").value = 0;
	}
	var num1 = 1;
	if(obInd.value != 0){
		arrInd = obInd.value.split(":");
		var sUrl = "getData.php?mode=getSpecialty&pid="+obInd.value;
		var arrVal = procRequest(sUrl);
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "block";
		document.getElementById("ind_Div").innerHTML = arrInd[1];
		var arrUnits;
		var specialty = "";
		var obElm = document.getElementById("specialty_list");
		if(!isEmpty(arrVal)){
			for(var i=0; i < arrVal.length; i++){
				arrUnits = arrVal[i].split("-");
				chk_id = "chk_specialty"+num1;
				chk_id = chk_id.toUpperCase();
				specialty_name = arrUnits[1].replace(/\s/g,"");
				chk_name = specialty_name+num1+"_"+arrInd[0];
				chk_name = chk_name.toUpperCase();
				specialty = specialty +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block; " for=cb'+arrUnits[0];
				specialty = specialty +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
				specialty = specialty +'" name="'+chk_name+'" onclick="getExpertise(\''+obInd.value+'\',this,\''+chk_name+'\',\''+chk_id+'\');">&nbsp;'+arrUnits[1]+'</LABEL>';
			}
			specialty = specialty +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
			specialty = specialty +'><INPUT id="specialtyAll" type="checkbox" class="noborder" value="All" name="specialty'+num1+'[]" onclick="check_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
		}
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx><div id="sp_Other_disp" style="display:none;"></div></LABEL>';
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx';
		specialty = specialty +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_SP_Other" value="" onclick="add_SP_Row(\''+obInd.value+'\');" class="btn_sm_addother"/></LABEL>';
		obElm.innerHTML = specialty;
	} else {
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "none";
	}
}
function getSubCatHobby(obInd){
var expertise_List1 = document.getElementById("hobbyAct_List1");
if(expertise_List1.childNodes.length > 0){
removeInd_AllChildNode();
document.getElementById("hobby_row_cnt").value = 0;
}
if (obInd.value != 0) {
arrInd = obInd.value.split(":");
var sUrl = "getData.php?mode=getHobby&pid="+arrInd[0];
var arrVal = procRequest(sUrl);
document.getElementById("hobbySubCat").style.display = "none";
document.getElementById("hobby_SubCat_lst").style.display = "block";
var arrUnits;
var hobbySubCat = "";
var obElm = document.getElementById("hobby_SubCat_lst");
var expertise_List = document.getElementById("hobbyAct_List1");
var exp_List_length = expertise_List.childNodes.length;
if(!isEmpty(arrVal)){
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
industry_name = arrInd[1].replace(/\s/g,"");
chk_id = "chk_"+arrInd[0]+"_"+industry_name;
chk_id = chk_id.toUpperCase();
specialty_name = arrUnits[1].replace(/\s/g,"")
chk_name = specialty_name+"_"+arrInd[0];
chk_name = chk_name.toUpperCase();
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
hobbySubCat = hobbySubCat +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
hobbySubCat = hobbySubCat +'" name="'+chk_name+'" onclick="getHobbyAct(this,\''+chk_name+'\',\''+chk_id+'\');"';
if(exp_List_length > 0){
var div_name = "div_"+chk_name;
div_name = div_name.toUpperCase();
for (j=0; j<exp_List_length; j++){
if (expertise_List.childNodes[j].nodeName == div_name){
hobbySubCat = hobbySubCat +' checked';
}
}
}
hobbySubCat = hobbySubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx';
hobbySubCat = hobbySubCat +'><INPUT id="hobbySubCat_All" type="checkbox" class="noborder" value="All" name="'+chk_name+'" onclick="check_Hobby_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
}
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="hob_Other_disp" style="display:none;"></div></LABEL>';
hobbySubCat = hobbySubCat +'<LABEL class="lblspecialitydata" for=cbx';
hobbySubCat = hobbySubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_Hob_Other" value="" onclick="add_Hob_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
obElm.innerHTML = hobbySubCat;
if(exp_List_length > 0){
for (k=0; k<exp_List_length;k++){
myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
myRegexp = eval(myRegexp);
if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
ext_Hob_Row(arrInd[0],rowno[1]);
}
}
}
} else {
document.getElementById("hobbySubCat").style.display = "block";
document.getElementById("hobby_SubCat_lst").style.display = "none";
}
}
function getCompSubCat(obInd){
var expertise_List1 = document.getElementById("compAct_List1");
if(expertise_List1.childNodes.length>0){
removeInd_AllChildNodes();
document.getElementById("comp_row_cnt").value = 0;
}
if (obInd.value != 0) {
arrInd = obInd.value.split(":");
var sUrl = "getData.php?mode=getCompSubCat&pid="+arrInd[0];
var arrVal = procRequest(sUrl);
document.getElementById("cbo_SubComp").style.display = "block";
document.getElementById("comp_SubCat_lst").style.display = "block";
var arrUnits;
var compSubCat = "";
var obElm = document.getElementById("comp_SubCat_lst");
var expertise_List = document.getElementById("compAct_List1");
var exp_List_length = expertise_List.childNodes.length;
if(!isEmpty(arrVal)){
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
industry_name = arrInd[1].replace(/\s/g,"");
chk_id = "chk_"+arrInd[0]+"_"+industry_name;
chk_id = chk_id.toUpperCase();
specialty_name = arrUnits[1].replace(/\s/g,"")
chk_name = specialty_name+"_"+arrInd[0];
chk_name = chk_name.toUpperCase();
compSubCat = compSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
compSubCat = compSubCat +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
compSubCat = compSubCat +'" name="'+chk_name+'" onclick="getCompAct_comp(this,\''+chk_name+'\',\''+chk_id+'\');"';
if(exp_List_length>0){
var div_name = "div_"+chk_name;
div_name = div_name.toUpperCase();
for (j=0; j<exp_List_length; j++){
if (expertise_List.childNodes[j].nodeName == div_name){
compSubCat = compSubCat +' checked';
}
}
}
compSubCat = compSubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
compSubCat = compSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
compSubCat = compSubCat +'><INPUT id="compSubCat_All" type="checkbox" class="noborder" value="All" name="'+chk_name+'" onclick="check_Comp_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
}
compSubCat = compSubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="comp_Other_disp" style="display:none;"></div></LABEL>';
compSubCat = compSubCat +'<LABEL class="lblspecialitydata" for=cbx';
compSubCat = compSubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_comp_Other" value="" onclick="add_Comp_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
obElm.innerHTML = compSubCat;
if(exp_List_length>0){
for (k=0; k<exp_List_length;k++){
myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
myRegexp = eval(myRegexp);
if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
ext_Comp_Row(arrInd[0],rowno[1]);
}
}
}
} else {
document.getElementById("cbo_SubComp").style.display = "block";
document.getElementById("comp_SubCat_lst").style.display = "none";
}
}
function getTechSubCat2(obInd){
var expertise_List1 = document.getElementById("techAct_List1");
if(expertise_List1.childNodes.length > 0){
removeInd_AllChildNodes();
document.getElementById("technical_row_cnt").value = 0;
}
if (obInd.value != 0) {
arrInd = obInd.value.split(":");
var sUrl = "getData.php?mode=getTechSubCat&pid="+arrInd[0];
var arrVal = procRequest(sUrl);
document.getElementById("cbo_SubTech").style.display = "none";
document.getElementById("tech_SubCat_lst").style.display = "block";
var arrUnits;
var techSubCat = "";
var obElm = document.getElementById("tech_SubCat_lst");
var expertise_List = document.getElementById("techAct_List1");
var exp_List_length = expertise_List.childNodes.length;
if(!isEmpty(arrVal))
{
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
industry_name = arrInd[1].replace(/\s/g,"");
chk_id = "chk_"+arrInd[0]+"_"+industry_name;
chk_id = chk_id.toUpperCase();
specialty_name = arrUnits[1].replace(/\s/g,"")
chk_name = specialty_name+"_"+arrInd[0];
chk_name = chk_name.toUpperCase();
techSubCat = techSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
techSubCat = techSubCat +'><INPUT id="'+chk_id+'" class=noborder type="checkbox" value="'+arrUnits[0]+':'+arrUnits[1];
techSubCat = techSubCat +'" name="'+chk_name+'" onclick="getTechAct(this,\''+chk_name+'\',\''+chk_id+'\');"';
if(exp_List_length > 0){
var div_name = "div_"+chk_name;
div_name = div_name.toUpperCase();
for (j=0; j<exp_List_length; j++){
if (expertise_List.childNodes[j].nodeName == div_name){
techSubCat = techSubCat +' checked';
}
}
}
techSubCat = techSubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
}
techSubCat = techSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
techSubCat = techSubCat +'><INPUT class=noborder id="techSubCat_All" type="checkbox" value="All" name="'+chk_name+'" onclick="check_Tech_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
}
techSubCat = techSubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="tech_Other_disp" style="display:none;"></div></LABEL>';
techSubCat = techSubCat +'<LABEL class="lblspecialitydata" for=cbx';
techSubCat = techSubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_tech_Other" value="" onclick="add_Tech_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
obElm.innerHTML = techSubCat;
if(exp_List_length > 0){
for (k=0; k<exp_List_length;k++){
myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
myRegexp = eval(myRegexp);
if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
ext_Tech_Row(arrInd[0],rowno[1]);
}
}
}
} else {
document.getElementById("cbo_SubTech").style.display = "block";
document.getElementById("tech_SubCat_lst").style.display = "none";
}
}
function getTechSubCat(obInd){
	if(obInd.value){
		if(obInd.value != 0){
			var getSkill = 1;
			arrInd = obInd.value.split(":");
		} else {
			var getSkill = 0;
		}
	} else {
		getSkill = 1;
		arrInd = obInd.split(":");
	}
if (getSkill != 0){
	var sUrl = "getData.php?mode=getTechSubCat&pid="+arrInd[0];
	var arrVal = procRequest(sUrl);
	document.getElementById("cbo_SubTech").style.display = "none";
	document.getElementById("tech_SubCat_lst").style.display = "block";
	var arrUnits;
	var techSubCat = "";
	var obElm = document.getElementById("tech_SubCat_lst");
	var expertise_List = document.getElementById("techAct_List1");
	var exp_List_length = expertise_List.childNodes.length;
if(!isEmpty(arrVal)){
	for(var i=0; i < arrVal.length; i++){
		arrUnits = arrVal[i].split("-");
		industry_name = arrInd[1].replace(/\s/g,"");
		chk_id = "chk_"+arrInd[0]+"_"+industry_name;
		chk_id = chk_id.toUpperCase();
		specialty_name = arrUnits[1].replace(/\s/g,"")
		chk_name = specialty_name+"_"+arrInd[0];
		chk_name = chk_name.toUpperCase();
		techSubCat = techSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
		techSubCat = techSubCat +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
		techSubCat = techSubCat +'" name="'+chk_name+'" onclick="getTechAct(this,\''+chk_name+'\',\''+chk_id+'\');"';
		if(exp_List_length > 0){
			var div_name = "div_"+chk_name;
			div_name = div_name.toUpperCase();
			for (j=0; j<exp_List_length; j++){
				if (expertise_List.childNodes[j].nodeName == div_name){
					techSubCat = techSubCat +' checked';
				}
			}
		}
		techSubCat = techSubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
	}
	techSubCat = techSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
	techSubCat = techSubCat +'><INPUT id="techSubCat_All" type="checkbox" class="noborder" value="All" name="'+chk_name+'" onclick="check_Tech_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
}
techSubCat = techSubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="tech_Other_disp" style="display:none;"></div></LABEL>';
techSubCat = techSubCat +'<LABEL class="lblspecialitydata" for=cbx';
techSubCat = techSubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_tech_Other" value="" onclick="add_Tech_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
obElm.innerHTML = techSubCat;
if(exp_List_length > 0){
	for (k=0; k<exp_List_length;k++){
		myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
		myRegexp = eval(myRegexp);
		if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
			var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
			ext_Tech_Row(arrInd[0],rowno[1]);
		}
	}
	}
	} else {
		document.getElementById("cbo_SubTech").style.display = "block";
		document.getElementById("tech_SubCat_lst").style.display = "none";
	}
}
function getTechAct(obInd,sp_chk_name,sp_chk_id){
if(obInd.checked){
var F = document.frmProfile;
if(sp_chk_id != ''){
var str = "F."+sp_chk_id;
str = eval(str);
var iCnt = 0;
for(var i = 0; i < str.length; i++){
if(!str[i].checked){
iCnt++;
}
}
if(!iCnt){
document.getElementById("techSubCat_All").checked = true;
}
}
arrTemp = sp_chk_name.split("_");
if(arrTemp[0] != 'OTHER'){
arrInd = obInd.value.split(":");
var sUrl = "getData.php?mode=getTechAct&cat_id="+arrInd[0];
var arrVal = procRequest(sUrl);
}
if(document.getElementById("techAct_Disp").style.display == "none"){
document.getElementById("techAct_Disp").style.display = "block";
}
var arrUnits;
var expertise = "";
var technical_row_cnt = document.getElementById("technical_row_cnt");
var num2 = technical_row_cnt.value;
num2++;
var expertise_List = document.getElementById("techAct_List1");
var exp_List_length = expertise_List.childNodes.length;
var div_name = "div_"+sp_chk_name;
div_name = div_name.toUpperCase();
var iDiv =0;
for (i=0; i<exp_List_length; i++){
if (expertise_List.childNodes[i].nodeName == div_name){
iDiv++;
}
}
if (!iDiv){
var newdivname = "added_Tech_Act" + num2;
var new_other_div = "addedTech_Other" + num2;
idref1 = "chk_"+newdivname;
var newdiv = document.createElement(div_name);
if(arrTemp[0] == 'OTHER'){
expertise = expertise +'<div><table border="1" cellpadding="0" cellspacing="0" class="bdr"><tr><td height="25" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_tech(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
expertise = expertise + '<tr><td height="25" align="left" valign="top"><DIV style="BORDER-RIGHT: #d4d0c8 1px solid; BORDER-TOP: #404040 1px solid; BACKGROUND: #fff; OVERFLOW: auto; BORDER-LEFT: #404040 1px solid; BORDER-BOTTOM: #d4d0c8 1px solid; HEIGHT: 7.5em;">';
} else {
expertise = expertise +'<div><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bdr"><tr><td height="25" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow_tech(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
if(isEmpty(arrVal)){
expertise = expertise + '<tr><td height="25" align="left" valign="top"><DIV style="BORDER-RIGHT: #d4d0c8 1px solid; BORDER-TOP: #404040 1px solid; BACKGROUND: #fff; OVERFLOW: auto; BORDER-LEFT: #404040 1px solid; BORDER-BOTTOM: #d4d0c8 1px solid; HEIGHT: 7.5em">';
} else {
expertise = expertise + '<tr><td height="25" align="left" valign="top"><DIV style="BORDER-RIGHT: #d4d0c8 1px solid; BORDER-TOP: #404040 1px solid; BACKGROUND: #fff; OVERFLOW: auto; BORDER-LEFT: #404040 1px solid; BORDER-BOTTOM: #d4d0c8 1px solid; HEIGHT: 7.5em">'
for(var i=0; i < arrVal.length; i++){
arrUnits = arrVal[i].split("-");
expertise = expertise +'<LABEL style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" value="'+arrUnits[0]+':'+arrUnits[1];
expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
}
expertise = expertise +'<LABEL style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
}
}
expertise = expertise +'<LABEL style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx><div id="'+new_other_div+'" style="display:none;"></div></LABEL>';
expertise = expertise +'<LABEL style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_TechAct_Other" value="Add Other" onclick="add_Tech_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="sbutton"/></LABEL>';
expertise = expertise +'</DIV></td></tr></table></div>';
newdiv.innerHTML =expertise;
expertise_List.appendChild(newdiv);
technical_row_cnt.value = num2;
} else {
return false;
}
} else {
removeChildRow_tech(sp_chk_name);
}
}
function removeChildRow_exp(divID){
	var F = document.frmProfile;
	var chkid = "F."+divID;
	chkid = eval(chkid);
	chkid.checked = false;
	if(document.getElementById('txt_'+divID)){
		document.getElementById('txt_'+divID).value="Other";
		document.getElementById('txt_'+divID).disabled=true;
	} else {
		document.getElementById("specialtyAll").checked = false;
	}
	var expertise_List1 = document.getElementById("expertise_List1");
	var divName = "div_"+divID;
	divName = divName.toUpperCase();
	for (i=0; i<expertise_List1.childNodes.length; i++){
		if (expertise_List1.childNodes[i].nodeName == divName){
			if(expertise_List1.childNodes.length == 1){
				document.getElementById("expertise_Disp").style.display = "none";
				document.getElementById("domestic_Disp").style.display = "none";
			}
			expertise_List1.removeChild(expertise_List1.childNodes[i]);
		}
	}
}
function removeChildRow_hobby(divID){
	var F = document.frmProfile;
	var chkid = "F."+divID;
	if(eval(chkid)){
	chkid = eval(chkid);
	chkid.checked = false;
	document.getElementById("hobbySubCat_All").checked = false;
	}
	var txt_box_id = "F.txt_"+divID;
	if(eval(txt_box_id)){
	txt_box_id = eval(txt_box_id);
	txt_box_id.value="Other";
	txt_box_id.disabled=true;
	}
	var expertise_List1 = document.getElementById("hobbyAct_List1");
	var divName = "DIV_"+divID;
	divName = divName.toUpperCase();
	for (i=0; i<expertise_List1.childNodes.length; i++){
	if (expertise_List1.childNodes[i].nodeName == divName){
	if(expertise_List1.childNodes.length == 1){
	document.getElementById("hobbyAct_Disp").style.display = "none";
	}
	expertise_List1.removeChild(expertise_List1.childNodes[i]);
	}
	}
}
function removeChildRow_tech(divID){
	var F = document.frmProfile;
	var chkid = "F."+divID;
	if(eval(chkid)){
		chkid = eval(chkid);
		chkid.checked = false;
		document.getElementById("techSubCat_All").checked = false;
	}
	var txt_box_id = "F.txt_"+divID;
	if(eval(txt_box_id)){
		txt_box_id = eval(txt_box_id);
		txt_box_id.value="Other";
		txt_box_id.disabled=true;
	}
	var expertise_List1 = document.getElementById("techAct_List1");
	var divName = "div_"+divID;
	divName = divName.toUpperCase();
	for (i=0; i<expertise_List1.childNodes.length; i++){
		if (expertise_List1.childNodes[i].nodeName == divName){
			if(expertise_List1.childNodes.length == 1){
				document.getElementById("techAct_Disp").style.display = "none";
			}
			expertise_List1.removeChild(expertise_List1.childNodes[i]);
		}
	}
}
function removeChildRow_comp(divID){
	var F = document.frmProfile;
	var chkid = "F."+divID;
	if(eval(chkid)){
		chkid = eval(chkid);
		chkid.checked = false;
		document.getElementById("compSubCat_All").checked = false;
	}
	var txt_box_id = "F.txt_"+divID;
	if(eval(txt_box_id)){
		txt_box_id = eval(txt_box_id);
		txt_box_id.value="Other";
		txt_box_id.disabled=true;
	}
	var expertise_List1 = document.getElementById("compAct_List1");
	var divName = "div_"+divID;
	divName = divName.toUpperCase();
	for (i=0; i<expertise_List1.childNodes.length; i++){
		if (expertise_List1.childNodes[i].nodeName == divName){
			if(expertise_List1.childNodes.length == 1){
				document.getElementById("techAct_Disp").style.display = "none";
			}
			expertise_List1.removeChild(expertise_List1.childNodes[i]);
		}
	}
}
function removeChildRow(divID){
	var F = document.frmProfile;
	var chkid = "F."+divID;
	if(eval(chkid)){
		chkid = eval(chkid);
		chkid.checked = false;
		document.getElementById("compSubCat_All").checked = false;
	}
	var txt_box_id = "F.txt_"+divID;
	if(eval(txt_box_id)){
		txt_box_id = eval(txt_box_id);
		txt_box_id.value="Other";
		txt_box_id.disabled=true;
	}
	var expertise_List1 = document.getElementById("compAct_List1");
	var divName = "div_"+divID;
	divName = divName.toUpperCase();
	for (i=0; i<expertise_List1.childNodes.length; i++){
		if (expertise_List1.childNodes[i].nodeName == divName){
			if(expertise_List1.childNodes.length == 1){
				document.getElementById("compAct_Disp").style.display = "none";
			}
			expertise_List1.removeChild(expertise_List1.childNodes[i]);
		}
	}
}
function getCompAct_comp(obInd,sp_chk_name,sp_chk_id){
	if(obInd.checked){
		var F = document.frmProfile;
		if(sp_chk_id != ''){
			var str = "F."+sp_chk_id;
			str = eval(str);
			var iCnt = 0;
			for(var i = 0; i < str.length; i++){
				if(!str[i].checked){
					iCnt++;
				}
			}
			if(!iCnt){
				document.getElementById("compSubCat_All").checked = true;
			}
		}
		arrTemp = sp_chk_name.split("_");
		if(arrTemp[0] != 'OTHER'){
			arrInd = obInd.value.split(":");
			var sUrl = "getData.php?mode=getCompAct&cat_id="+arrInd[0];
			var arrVal = procRequest(sUrl);
		}
		if(document.getElementById("compAct_Disp").style.display == "none"){
			document.getElementById("compAct_Disp").style.display = "block";
		}
		var arrUnits;
		var expertise = "";
		var comp_row_cnt = document.getElementById("comp_row_cnt");
		var num2 = comp_row_cnt.value;
		num2++;
		var expertise_List = document.getElementById("compAct_List1");
		var exp_List_length = expertise_List.childNodes.length;
		var div_name = "div_"+sp_chk_name;
		div_name = div_name.toUpperCase();
		var iDiv =0;
		for (i=0; i<exp_List_length; i++){
			if (expertise_List.childNodes[i].nodeName == div_name){
				iDiv++;
			}
		}
		if (!iDiv){
			var newdivname = "added_Comp_Act" + num2;
			var new_other_div = "addedComp_Other" + num2;
			idref1 = "chk_"+newdivname;
			var newdiv = document.createElement(div_name);
			if(arrTemp[0] == 'OTHER'){
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_comp(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
				expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
				expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
				expertise = expertise +'</DIV></td></tr></table></div>';
			} else {
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow_comp(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
				if(isEmpty(arrVal)){
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				} else {
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">'
					for(var i=0; i < arrVal.length; i++){
						arrUnits = arrVal[i].split("-");
						expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
						expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
						expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
					}
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				}
			}
			newdiv.innerHTML =expertise;
			expertise_List.appendChild(newdiv);
			comp_row_cnt.value = num2;
		} else {
			return false;
		}
	} else {
		removeChildRow_comp(sp_chk_name);
	}
}
function getCompAct(obInd,sp_chk_name,sp_chk_id){
	if(obInd.checked){
		var F = document.frmProfile;
		if(sp_chk_id != ''){
			var str = "F."+sp_chk_id;
			str = eval(str);
			var iCnt = 0;
			for(var i = 0; i < str.length; i++){
				if(!str[i].checked){
					iCnt++;
				}
			}
			if(!iCnt){
				document.getElementById("compSubCat_All").checked = true;
			}
		}
		arrTemp = sp_chk_name.split("_");
		if(arrTemp[0] != 'OTHER'){
			arrInd = obInd.value.split(":");
			var sUrl = "getData.php?mode=getCompAct&cat_id="+arrInd[0];
			var arrVal = procRequest(sUrl);
		}
		if(document.getElementById("compAct_Disp").style.display == "none"){
			document.getElementById("compAct_Disp").style.display = "block";
		}
		var arrUnits;
		var expertise = "";
		var computer_row_cnt = document.getElementById("comp_row_cnt");
		var num2 = computer_row_cnt.value;
		num2++;
		var expertise_List = document.getElementById("compAct_List1");
		var exp_List_length = expertise_List.childNodes.length;
		var div_name = "div_"+sp_chk_name;
		div_name = div_name.toUpperCase();
		var iDiv =0;
		for (i=0; i<exp_List_length; i++){
			if (expertise_List.childNodes[i].nodeName == div_name){
				iDiv++;
			}
		}
		if (!iDiv){
			var newdivname = "added_Comp_Act" + num2;
			var new_other_div = "addedComp_Other" + num2;
			idref1 = "chk_"+newdivname;
			var newdiv = document.createElement(div_name);
			if(arrTemp[0] == 'OTHER'){
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_comp(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
				expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
				expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
				expertise = expertise +'</DIV></td></tr></table></div>';
			} else {
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow_comp(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
				if(isEmpty(arrVal)){
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215" align="justify" valign="top"><DIV class="div_ajaxbox">';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				} else {
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">'
					for(var i=0; i < arrVal.length; i++){
						arrUnits = arrVal[i].split("-");
						expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
						expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
						expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
					}
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				}
			}
/*			if(arrTemp[0] == 'OTHER'){
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b"><tr><td class="td_ajaxbox_b" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
				expertise = expertise + '<tr><td class="td_ajaxbox_b"><DIV class="div_ajaxbox">';
			} else {
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox_b"><tr><td class="td_ajaxbox_b" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
				if(isEmpty(arrVal)){
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
				} else {
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox"'
					for(var i=0; i < arrVal.length; i++){
						arrUnits = arrVal[i].split("-");
						expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
						expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
						expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
					}
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
				}
			}
			expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
			expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
			expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_CompAct_Other" value="" onclick="add_Comp_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
			expertise = expertise +'</DIV></td></tr></table></div>';*/
			newdiv.innerHTML =expertise;
			expertise_List.appendChild(newdiv);
			computer_row_cnt.value = num2;
		} else {
			return false;
		}
	} else {
		removeChildRow(sp_chk_name);
	}
}
function s_industry(){
	if( document.frmProfile.txt_addindustry.value == ""){
		alert("Please select industry");
		document.frmProfile.txt_addindustry.focus();
		return false;
	} else {
		var binfo = document.frmProfile.txt_addindustry.value;
		var sUrl = "getData.php?mode=add_industry&iname="+binfo+"&cid=0";
		var arrVal = procRequest(sUrl);
		if(arrVal == "exist"){
			alert("Requested industry already exists..");
		} else if (arrVal == "insert"){
			alert("Requested industry added successfully..");
			document.getElementById("add_new_industry").style.display = "none";
			window.location.reload(true);
		}
	}
}
function deleteInd(ind_id){
	document.frmProfile.choice.value = "deleteInd";
	document.frmProfile.action = "register.cb.php?choice=deleteInd&ind_id="+ind_id;
	document.frmProfile.submit();
}
function displayloc1(chk){
	if(chk.checked){
		document.getElementById("top_Pref_loc1").style.display = "block";
	} else {
		document.getElementById("top_Pref_loc1").style.display = "none";
	}
}
function disp_txtBox(option){
	if(option.value == "biz"){
		document.getElementById("bizName").value = "";
		document.getElementById("txtURL").value = "";
		document.getElementById("bizname_disp").style.display = "block";
	} else {
		document.getElementById("bizname_disp").style.display = "none";
	}
	if(option.value == "Other"){
		document.getElementById("refType_Other").style.display = "block";
	} else {
		document.getElementById("refType_Other").value = "";
		document.getElementById("refType_Other").style.display = "none";
	}
}
function ToogledivTag2(obj,dispDiv,status,txtdispDiv){
	document.getElementById(dispDiv).style.display = status;
	if(status == "block"){
		document.getElementById(txtdispDiv).style.display = "block";
	} else {
		document.getElementById(txtdispDiv).value = "";
		document.getElementById(txtdispDiv).style.display = "none";
	}
	if(obj.value == "blockmyname"){
		document.frmProfile.contactOpt1[1].checked = true;
		document.frmProfile.contactOpt1[0].checked = false;
		document.frmProfile.contactOpt1[0].disabled=true;
		document.getElementById('display_contacts').style.display = "none";
	} else {
		document.getElementById('display_contacts').style.display = "block";
	}
}
function toggleDivs(divId,titId){
	var secdiv=document.getElementById(divId);
	try{
		var title=document.getElementById(titId);
	if(!title || title==null){
		secdiv.style.display="none";
	}
	}catch(e){
	}
}
function otherDisplay(option){
	if(option.value == "Other"){
		document.getElementById("refRelat_Other").style.display = "block";
	} else {
		document.getElementById("refRelat_Other").value = "";
		document.getElementById("refRelat_Other").style.display = "none";
	}
}
function disp_proj_area(txtval){
	if(txtval.value == "other"){
		document.getElementById('projectOpt_other').style.display = "block";
	} else {
		document.getElementById('projectOpt_other').style.display = "none";
		document.frmProfile.txtProjectOpt.value = "";
	}
}
function dispAddress2(divID,status){
	document.getElementById(divID).style.display = status;
	if(status == "none"){
		if(divID == "address2"){
			obAdd = document.getElementById('txtAddress2');
			obCoun = document.getElementById('country2');
			obSt = document.getElementById('state2');
			obTxtSt = document.getElementById('txtState2');
			obCity = document.getElementById('city2');
			obTxtCity = document.getElementById('txtCity2');
			obZip = document.getElementById('txtzip2');
			obAdd.value = "";
			obTxtSt.value = "";
			obTxtCity.value = "";
			obZip.value = "";
			obCoun.value = 0;
			obSt.value = 0;
			clearList1(obCity);
			obSt.style.display = "block";
			obTxtSt.style.display = "none";
			obCity.style.display = "block";
			obTxtCity.style.display = "none";
		} else if(divID == "bizAddress2"){
			obAdd = document.getElementById('bizTxtAddress2');
			obCoun = document.getElementById('bizcountry2');
			obSt = document.getElementById('bizstate2');
			obTxtSt = document.getElementById('biztxtState2');
			obCity = document.getElementById('bizcity2');
			obTxtCity = document.getElementById('biztxtCity2');
			obZip = document.getElementById('biztxtzip2');
			obAdd.value = "";
			obTxtSt.value = "";
			obTxtCity.value = "";
			obZip.value = "";
			obCoun.value = 0;
			obSt.value = 0;
			clearList1(obCity);
			obSt.style.display = "block";
			obTxtSt.style.display = "none";
			obCity.style.display = "block";
			obTxtCity.style.display = "none";
		}
	}
}
function change_available_option(ob){
	if(ob.value == "2"){
		document.getElementById('available_date_row').style.display = "block";
	} else {
		document.getElementById('available_date_row').style.display = "none";
	}
}
function getSpecialty_other(ob){
	var obInd = document.frmProfile.txt_addindustry.value;
	var expertise_List1 = document.getElementById("expertise_List1");
	if(expertise_List1.childNodes.length> 0){
		removeInd_AllChildNode();
		document.getElementById("specialty_row_cnt").value = 0;
	}
	var num1 = 1;
	if(obInd != ""){
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "block";
		document.getElementById("ind_Div").innerHTML = obInd;
		var arrUnits;
		var specialty = "";
		var obElm = document.getElementById("specialty_list");
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx><div id="sp_Other_disp" style="display:none;"></div></LABEL>';
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx';
		specialty = specialty +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_SP_Other" value="" onclick="add_SP_Row(\''+obInd+'\');" class="btn_sm_addother"/></LABEL>';
		obElm.innerHTML = specialty;
	} else {
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "none";
	}
}
function language_status(obj){
	if(obj.checked){
		document.getElementById('show_languages').style.display = "";
	} else {
		document.getElementById('show_languages').style.display = "none";
	}
}
function displocations1(chks){
	if(chks.value == "2"){
	document.getElementById("top_Pref_loc1_zip").style.display = "none";
	document.getElementById("top_Pref_loc1").style.display = "block";
	} else if(chks.value == "1"){
	document.getElementById("top_Pref_loc1").style.display = "none";
	document.getElementById("top_Pref_loc1_zip").style.display = "block";
	} else {
	document.getElementById("top_Pref_loc1").style.display = "none";
	document.getElementById("top_Pref_loc1_zip").style.display = "none";
	}
}
function displocations2(chks){
	if(chks.value == "2"){
	document.getElementById("top_Pref_loc2_zip").style.display = "none";
	document.getElementById("top_Pref_loc2").style.display = "block";
	} else if(chks.value == "1"){
	document.getElementById("top_Pref_loc2").style.display = "none";
	document.getElementById("top_Pref_loc2_zip").style.display = "block";
	} else {
	document.getElementById("top_Pref_loc2").style.display = "none";
	document.getElementById("top_Pref_loc2_zip").style.display = "none";
	}
}
function displocations3(chks){
	if(chks.value == "2"){
	document.getElementById("top_Pref_loc3_zip").style.display = "none";
	document.getElementById("top_Pref_loc3").style.display = "block";
	} else if(chks.value == "1"){
	document.getElementById("top_Pref_loc3").style.display = "none";
	document.getElementById("top_Pref_loc3_zip").style.display = "block";
	} else {
	document.getElementById("top_Pref_loc3").style.display = "none";
	document.getElementById("top_Pref_loc3_zip").style.display = "none";
	}
}
function displocations4(chks){
	if(chks.value == "2"){
		document.getElementById("top_Pref_loc4_zip").style.display = "none";
		document.getElementById("top_Pref_loc4").style.display = "block";
	} else if(chks.value == "1"){
		document.getElementById("top_Pref_loc4").style.display = "none";
		document.getElementById("top_Pref_loc4_zip").style.display = "block";
	} else {
		document.getElementById("top_Pref_loc4").style.display = "none";
		document.getElementById("top_Pref_loc4_zip").style.display = "none";
	}
}
function displocations5(chks){
	if(chks.value == "2"){
		document.getElementById("top_Pref_loc5_zip").style.display = "none";
		document.getElementById("top_Pref_loc5").style.display = "block";
	} else if(chks.value == "1"){
		document.getElementById("top_Pref_loc5").style.display = "none";
		document.getElementById("top_Pref_loc5_zip").style.display = "block";
	} else {
		document.getElementById("top_Pref_loc5").style.display = "none";
		document.getElementById("top_Pref_loc5_zip").style.display = "none";
	}
}
function display_loc_options(chk){
	if(chk.checked){
		document.getElementById("sel_zip_city_disp1").style.display = "block";
		document.getElementById("add_Loc").style.display = "block";
	} else {
		document.getElementById("sel_zip_city_disp1").style.display = "none";
		document.getElementById("sel_zip_city_disp2").style.display = "none";
		document.getElementById("sel_zip_city_disp3").style.display = "none";
		document.getElementById("sel_zip_city_disp4").style.display = "none";
		document.getElementById("sel_zip_city_disp5").style.display = "none";
		document.getElementById("sel_zip_city_disp1").value = "";
		document.getElementById("sel_zip_city_disp2").value = "";
		document.getElementById("sel_zip_city_disp3").value = "";
		document.getElementById("sel_zip_city_disp4").value = "";
		document.getElementById("sel_zip_city_disp5").value = "";
		document.getElementById("top_Pref_loc1_zip").style.display = "none";
		document.getElementById("top_Pref_loc1").style.display = "none";
		document.getElementById("top_Pref_loc2_zip").style.display = "none";
		document.getElementById("top_Pref_loc2").style.display = "none";
		document.getElementById("top_Pref_loc3_zip").style.display = "none";
		document.getElementById("top_Pref_loc3").style.display = "none";
		document.getElementById("top_Pref_loc4_zip").style.display = "none";
		document.getElementById("top_Pref_loc4").style.display = "none";
		document.getElementById("top_Pref_loc5_zip").style.display = "none";
		document.getElementById("top_Pref_loc5").style.display = "none";
		document.frmProfile.sel_zip_city1.value = "0";
		document.frmProfile.sel_zip_city2.value = "0";
		document.frmProfile.sel_zip_city3.value = "0";
		document.frmProfile.sel_zip_city4.value = "0";
		document.frmProfile.sel_zip_city5.value = "0";
		addedPrefLocNo = 1;
	}
}
addedPrefLocNo = 1;
function rem_prefLoc_Row(){
	divID = "top_Pref_loc" + addedPrefLocNo;
	document.getElementById(divID).style.display = "none";
	addedPrefLocNo--;
	rem_btn = "rem_btn" + addedPrefLocNo;
	document.getElementById(rem_btn).style.display="block";
	document.getElementById(rem_btn).innerHTML = '<input type="button" name="But_'+rem_btn+'" value="Remove" class="sbutton" style="width:60px;" onclick="rem_prefLoc_Row();">';
	if(addedPrefLocNo < 5){
		document.getElementById("add_Loc").style.display = "block";
	}
}
function validateZip1(zip){
	var F = document.frmProfile;
	var sUrl;
	if(!isEmpty(zip)){
		if(F.country1.value == 1 && F.state1.value != 0 && F.city1.value != 0) {
			sUrl = "getData.php?mode=validateZip&state="+F.state1.value+"&city="+F.city1.value+"&zip="+zip;
			var status = procRequest(sUrl);
			if(status == 'false'){
				alert('Please enter valid zip code');
				F.txtzip1.focus();
				bZip = 0;
			} else {
				bZip = 1;
			}
		}
	}
}
function getExpertise(Ind,obInd,sp_chk_name,chkid){
	if(obInd.checked){
		arrCat = Ind.split(":");
		var F = document.frmProfile;
		if(chkid != ''){
			var str = "F."+chk_id;
			str = eval(str);
			var iCnt = 0;
			for(var i = 0; i < str.length; i++){
				if(!str[i].checked){
					iCnt++;
				}
			}
			if(!iCnt){
				document.getElementById("specialtyAll").checked = true;
			}
		}
		arrTemp = sp_chk_name.split("_");
		if(arrTemp[0] != 'OTHER'){
			arrInd = obInd.value.split(":");
			var sUrl = "getData.php?mode=getAllExpertise&catid="+arrInd[0];
			var arrVal = procRequest(sUrl);
		}
		if(document.getElementById("expertise_Disp").style.display == "none"){
			document.getElementById("expertise_Disp").style.display = "block";
		}
		var arrUnits;
		var expertise = "";
		var specialty_row_cnt = document.getElementById("specialty_row_cnt");
		var num2 = specialty_row_cnt.value;
		num2++;
		var expertise_List = document.getElementById("expertise_List1");
		var exp_List_length = expertise_List.childNodes.length;
		var div_name = "div_"+sp_chk_name;
		div_name = div_name.toUpperCase();
		var iDiv =0;
		for (i=0; i<exp_List_length; i++){
			if (expertise_List.childNodes[i].nodeName == div_name){
				iDiv++;
			}
		}
		if (!iDiv){
			var newdivname = "added_SP_Expertise"+ num2;
			var new_other_div = "added_Exp_Other" + num2;
			new_other_div = new_other_div.toUpperCase();
			var newdiv = document.createElement(div_name);
			idref1 = "chk_"+newdivname;
			expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox">';
			if(arrTemp[0] == 'OTHER'){
				expertise = expertise +'<tr><td height="25" width="180" align="left" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_exp(\''+sp_chk_name+'\');" checked >&nbsp;<LABEL id="tit_'+sp_chk_name+'" class="bodytext">'+obInd.value+'</LABEL></td></tr>';
				expertise = expertise + '<tr><td height="25" width"180" align="left" valign="top"><DIV class="div_ajaxbox">';
			} else {
				expertise = expertise +'<tr><td height="25" align="left" valign="top" bgcolor="#F1F0F0" width="180"><input id="sp_'+newdivname+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_exp(\''+sp_chk_name+'\');" checked size="30">&nbsp;'+arrInd[1]+'</td></tr>';
				expertise = expertise + '<tr><td height="25" align="left" valign="top" width="180"><DIV class="div_ajaxbox">';
				if(!isEmpty(arrVal)){
					for(var i=0; i < arrVal.length; i++){
						arrUnits = arrVal[i].split("-");
						expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
						expertise = expertise +'><INPUT id="'+idref1+'" size="30" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
						expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
					}
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\',document.getElementById(\''+newdivname+'_Other\'));">&nbsp;All</LABEL>';
				}
			}
			expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
			expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
			expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_HobAct_Other" value="" onclick="add_Exp_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
			expertise = expertise +'</DIV></td></tr>';
			expertise = expertise +'<tr><td class="td_years_of_exp">&nbsp;<select class="cmb_years_of_exp" id= sp_'+newdivname+'_years name= '+newdivname+'_years><option value ="0">Years of Experience</option><option value = "-1">limited</option><option value = "+1">+1</option><option value = "2-3">2-3</option><option value = "3-5">3-5</option><option value = "5-7">5-7</option><option value = "7-10">7-10</option><option value = "+10">+10</option><option value ="+15">+15</option><option value ="+20">+20</option></select></td></tr>';
			expertise = expertise +'</table></div>';
			newdiv.innerHTML =expertise;
			expertise_List.appendChild(newdiv);
			specialty_row_cnt.value = num2;
			category = arrCat[1];
			category = category.toLowerCase();
			category = category.replace(/ /,"");
			if(category == "domestichelp"){
				document.getElementById("domestic_Disp").style.display = "block";
			} else {
				document.getElementById("domestic_Disp").style.display = "none";
			}
			document.getElementById("added_Industry_val").value = Ind;
		} else {
			return false;
		}
	} else {
		removeChildRow_exp(sp_chk_name);
	}
}



function getSpecialty(obInd,look_ind_id){
	var expertise_List1 = document.getElementById("expertise_List1");
	if(expertise_List1.childNodes.length > 0){
		removeInd_AllChildNode();
		document.getElementById("specialty_row_cnt").value = 0;
	}
	var num1 = 1;
	if(obInd != 0){
		arrInd = obInd.split(":");
		industry_id = arrInd[0];
		var sUrl = "getData.php?mode=getAll_Specialty&catid="+arrInd[0];
		var arrVal = procRequest(sUrl);
		var arrTmp = procRequest("getData.php?mode=getLook_ind_details&look_ind_id="+look_ind_id);
		arrTmp = arrTmp.toString();
		var arrLook = arrTmp.split("@$@");
		document.getElementById("cbo_Specialty").style.display = "none";
		document.getElementById("specialty_list").style.display = "block";
		document.getElementById("ind_Div").innerHTML = arrInd[1];
		var arrUnits;
		var specialty = "";
		var obElm = document.getElementById("specialty_list");
		if(!isEmpty(arrVal)){
			for(var i=0; i < arrVal.length; i++){
				arrUnits = arrVal[i].split("-");
				chk_id = "chk_specialty"+num1;
				chk_id = chk_id.toUpperCase();
				specialty_name = arrUnits[1].replace(/\s/g,"")
				chk_name = specialty_name+num1+"_"+arrInd[0];
				chk_name = chk_name.toUpperCase();
				specialty = specialty +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
				specialty = specialty +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
				specialty = specialty +'" name="'+chk_name+'" onclick="getExpertise(\''+obInd+'\',this,\''+chk_name+'\',\''+chk_id+'\');"';
				for(var j=0; j < arrLook.length; j++){
					arrLookTmp1 = arrLook[j].split("#");
					if(arrVal[i] == arrLookTmp1[0]){
						specialty = specialty + ' checked';
					}
				}
				specialty = specialty +'>&nbsp;'+arrUnits[1]+'</LABEL>';
			}
			specialty = specialty +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
			specialty = specialty +'><INPUT id="specialtyAll" type="checkbox" class="noborder" value="All" name="specialty'+num1+'[]" onclick="check_SP_All(this,\''+obInd+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
		}
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx><div id="sp_Other_disp" style="display:none;"></div></LABEL>';
		specialty = specialty +'<LABEL class="lblspecialitydata" for=cbx';
		specialty = specialty +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_SP_Other" value="" onclick="add_SP_Row(\''+obInd+'\');" class="btn_sm_addother"/></LABEL>';
		obElm.innerHTML = specialty;
		for(var j=0; j < arrLook.length; j++){
			arrLookTmp2 = arrLook[j].split("#");
			arrSP = arrLookTmp2[0].split("-");
			if(arrSP[0] == "Other"){
				ext_SP_Row(obInd,arrSP[1]);
				var otherSP_rowno = document.getElementById("added_OtherSP_rowno").value;
				SP_chk_other = "OTHER_"+ industry_id + "_" + otherSP_rowno;
				get_Ext_Expertise(obInd,SP_chk_other,"",arrLookTmp2[1])
			} else {
				SP_chkid = "chk_specialty" + num1;
				specialty_name = arrSP[1].replace(/\s/g,"")
				SP_chk_name = specialty_name + num1 + "_"+industry_id;
				SP_chk_name = SP_chk_name.toUpperCase();
				get_Ext_Expertise(obInd,SP_chk_name,SP_chkid,arrLookTmp2[1]);
			}
		}
	} else {
		document.getElementById("cbo_Specialty").style.display = "block";
		document.getElementById("specialty_list").style.display = "none";
	}
}
function doLinkClass(lnk) {
	if (lnk && lnk.blur) lnk.blur();
	if (!lnk || cur_link == lnk) return;
	if (cur_link) cur_link.className = "done";
	lnk.className = "on";
	cur_link = lnk;
}
function ToogledivTag(chk,dispDiv,txtTag){
	if(chk.checked){
		document.getElementById(dispDiv).style.display = "block";
	} else {
		document.getElementById(txtTag).value = "";
		document.getElementById(dispDiv).style.display = "none";
	}
}
function ed_ToogledivTag(chk,dispDiv,txtTag){
	if(chk.checked){
		document.getElementById(dispDiv).style.display = "block";
	} else {
		document.getElementById(dispDiv).style.display = "none";
	}
}
function tenline(ob){
	if(ob.checked){
		document.getElementById('10line_text').style.display = "block";
	} else {
		document.getElementById('10line_text').style.display = "none";
	}
}
function expNumvalidate(dateDiv,dTypeDiv){
	var arrNum = new Array();
	obdate = document.getElementById(dateDiv);
	obdType = document.getElementById(dTypeDiv);
	if(obdType.value == "days"){
		for(i=0;i<7;i++){
		arrNum[i] = (i+1)+'-'+(i+1);
		}
		if(obdate.value > 7){
			alert("Please select days between 1 and 7");
			fillList2(arrNum,obdate,"");
			obdate.focus();
		} else {
			fillList2(arrNum,obdate,obdate.value);
		}
	}
	if(obdType.value == "weeks"){
		for(i=0;i<4;i++){
			arrNum[i] = (i+1)+'-'+(i+1);
		}
		if(obdate.value > 4){
			alert("Please select weeks between 1 and 4");
			fillList2(arrNum,obdate,"");
			obdate.focus();
		} else {
			fillList2(arrNum,obdate,obdate.value);
		}
	}
	if(obdType.value == "months"){
		for(i=0;i<12;i++){
			arrNum[i] = (i+1)+'-'+(i+1);
		}
		if(obdate.value > 12){
			alert("Please select months between 1 and 12");
			fillList2(arrNum,obdate,"");
			obdate.focus();
		} else {
			fillList2(arrNum,obdate,obdate.value);
		}
	}
	if(obdType.value == "years"){
		for(i=0;i<35;i++){
			arrNum[i] = (i+1)+'-'+(i+1);
		}
		if(obdate.value > 0){
			fillList2(arrNum,obdate,obdate.value);
		} else {
			fillList2(arrNum,obdate,"");
		}
	}
}
function removeEdurow(divID){
	var addEdulist = document.getElementById("addEducation");
	for (i=0; i<addEdulist.childNodes.length; i++){
		if (addEdulist.childNodes[i].nodeName == divID){
			if(window.ActiveXObject){
				if(addEdulist.childNodes.length == 1){
					document.getElementById("added_Edu_disp").style.display = "none";
				}
			}else{
				if(addEdulist.childNodes.length == 2){
					document.getElementById("added_Edu_disp").style.display = "none";
				}
			}
			addEdulist.removeChild(addEdulist.childNodes[i]);
		}
	}
}
function disableChk(chkID){
	chk = document.getElementById(chkID);
	if(chk.checked){
		if(chkID == "howMany1"){
			document.getElementById("howMany2").disabled = true;
			document.getElementById("howMany3").disabled = true;
			document.getElementById("howMany4").disabled = true;
			document.getElementById("howMany5").disabled = true;
		}
		if(chkID == "howMany2"){
			document.getElementById("howMany1").disabled = true;
			document.getElementById("howMany3").disabled = true;
			document.getElementById("howMany4").disabled = true;
			document.getElementById("howMany5").disabled = true;
		}
		if(chkID == "howMany3"){
			document.getElementById("howMany1").disabled = true;
			document.getElementById("howMany2").disabled = true;
			document.getElementById("howMany4").disabled = true;
			document.getElementById("howMany5").disabled = true;
		}
		if(chkID == "howMany4"){
			document.getElementById("howMany1").disabled = true;
			document.getElementById("howMany2").disabled = true;
			document.getElementById("howMany3").disabled = true;
			document.getElementById("howMany5").disabled = true;
		}
		if(chkID == "howMany5"){
			document.getElementById("howMany1").disabled = true;
			document.getElementById("howMany2").disabled = true;
			document.getElementById("howMany3").disabled = true;
			document.getElementById("howMany4").disabled = true;
		}
	} else {
		document.getElementById("howMany1").disabled = false;
		document.getElementById("howMany2").disabled = false;
		document.getElementById("howMany3").disabled = false;
		document.getElementById("howMany4").disabled = false;
		document.getElementById("howMany5").disabled = false;
	}
}
	function ToggleDiv(status){
		if(status == "block"){
			document.getElementById("ownBizDisp").style.display = "block";
		} else if (status == "none"){
			var F = document.frmProfile;
			F.confidentOpt.checked = false;
			F.txtBizName.value = "";
			F.txtBizLoc.value = "";
			F.txtBizAdd.value = "";
			F.country1.value = 1;
			document.getElementById("state1").style.display = "block";
			F.state1.value = 0;
			F.txtState1.value = "";
			document.getElementById("txtState1").style.display = "none";
			document.getElementById("city1").style.display = "block";
			clearList1(document.getElementById("city1"));
			F.txtCity1.value = "";
			document.getElementById("txtCity1").style.display = "none";
			F.txtzip1.value = "";
			document.getElementById("ownBizDisp").style.display = "none";
		}
	}
	function getCityN(obj, obCoun,obSt,obCity){
		var sUrl;
		if(obCoun.value == 1 && obSt.value != 0) {
			sUrl = "getData.php?mode=getCity&state="+obSt.value;
			var arrVal = procRequest(sUrl);
			document.getElementById("pref_city" + obj + "_Td").innerHTML = "<select id='pref_city" + obj + "' name='pref_city" + obj + "' style='width:110px;'>" + arrVal + "</select>";
		}
	}
	function ToggleDiv1(chk,obElem){
		if(chk.checked){
			obElem.style.display = "block";
		} else {
			obElem.style.display = "none";
		}
	}
	function check_G_All(chk){
		var F = document.frmProfile;
		if(chk.checked){
		for(var i = 0; i < F.cntGeneral.length - 1; i++){
		F.cntGeneral[i].checked = true;
		}
		} else {
		for(var i = 0; i < F.cntGeneral.length; i++){
		F.cntGeneral[i].checked = false;
		}
		document.getElementById("txtCntOther").value = "";
		document.getElementById("cntTxtOther").style.display = "none";
		}
	}
	function ToogledivTag2(chk,dispDiv,txtTag){
		if(chk.checked){
			document.getElementById(dispDiv).style.display = "block";
		} else {
			document.getElementById(txtTag).value = "";
			document.getElementById(dispDiv).style.display = "none";
		}
	}
	function computer_exp(obj){
		if(obj.checked){
			document.getElementById("computer_skills_required").style.display = "";
		} else {
			document.getElementById("computer_skills_required").style.display = "none";
		}
	}
	function ToogledivTag3(chk,dispDiv,txtTag,dispDiv1,txtTag1){
		if(chk.checked){
			document.getElementById(dispDiv).style.display = "block";
			document.getElementById(dispDiv1).style.display = "block";
		} else {
//			document.getElementById(txtTag).value = "";
			document.getElementById(dispDiv).style.display = "none";
//			document.getElementById(txtTag1).value = "";
			document.getElementById(dispDiv1).style.display = "none";
		}
	}
	function displayloc(chk){
		if(chk.checked){
			document.getElementById("top_Pref_loc1").style.display = "block";
			document.getElementById("add_Loc").style.display = "block";
		} else {
			document.getElementById("top_Pref_loc1").style.display = "none";
			document.getElementById("top_Pref_loc2").style.display = "none";
			document.getElementById("top_Pref_loc3").style.display = "none";
			document.getElementById("top_Pref_loc4").style.display = "none";
			document.getElementById("top_Pref_loc5").style.display = "none";
			addedPrefLocNo = 1;
		}
	}
	function check_SP_All(chk,Ind,chk_id,arrSP){
		var sp_num = 1;
		arrInd = Ind.split(":");
		industry_id = arrInd[0];
		var arrSP = arrSP.split( "," );
		var F = document.frmProfile;
		var str = "F."+chk_id;
		str = eval(str);
		if(chk.checked){
			for(var i = 0; i < str.length; i++){
				str[i].checked = true;
			}
			for(var i = 0; i < str.length; i++){
				arrUnits = arrSP[i].split("-");
				specialty_name = arrUnits[1].replace(/\s/g,"")
				chk_name = specialty_name+sp_num+"_"+industry_id;
				chk_name = chk_name.toUpperCase();
				getExpertise(Ind,str[i],chk_name);
			}
		} else {
			for(var i = 0; i < str.length; i++){
				str[i].checked = false;
			}
			for(var i = 0; i < str.length; i++){
				arrUnits = arrSP[i].split("-");
				specialty_name = arrUnits[1].replace(/\s/g,"")
				chk_name = specialty_name+sp_num+"_"+industry_id;
				chk_name = chk_name.toUpperCase();
				removeChildRow(chk_name);
			}
		}
	}
	function forceNumber(event){
		var keyCode = event.keyCode ? event.keyCode : event.charCode;
		if((keyCode < 48 || keyCode > 58) && keyCode != 8 && keyCode != 9 && keyCode != 37 && keyCode != 39 && keyCode != 46 && keyCode != 116)
			return false;
	}
	function check_lang_all(chk_all,chkid){
		F = document.frmProfile;
		chkid = "F." + chkid;
		chkid = eval(chkid);
		if(chk_all.checked){
			for(var i = 0; i < chkid.length; i++){
				chkid[i].checked = true;
			}
		} else {
			for(var i = 0; i < chkid.length; i++){
				chkid[i].checked = false;
			}
		}
	}
function getTechAct(obInd,sp_chk_name,sp_chk_id){
	if(obInd.checked){
		var F = document.frmProfile;
		if(sp_chk_id != ''){
			var str = "F."+sp_chk_id;
			str = eval(str);
			var iCnt = 0;
			for(var i = 0; i < str.length; i++){
				if(!str[i].checked){
					iCnt++;
				}
			}
			if(!iCnt){
				document.getElementById("techSubCat_All").checked = true;
			}
		}
		arrTemp = sp_chk_name.split("_");
		if(arrTemp[0] != 'OTHER'){
			arrInd = obInd.value.split(":");
			var sUrl = "getData.php?mode=getTechAct&cat_id="+arrInd[0];
			var arrVal = procRequest(sUrl);
		}
		if(document.getElementById("techAct_Disp").style.display == "none"){
			document.getElementById("techAct_Disp").style.display = "block";
		}
		var arrUnits;
		var expertise = "";
		var technical_row_cnt = document.getElementById("technical_row_cnt");
		var num2 = technical_row_cnt.value;
		num2++;
		var expertise_List = document.getElementById("techAct_List1");
		var exp_List_length = expertise_List.childNodes.length;
		var div_name = "div_"+sp_chk_name;
		div_name = div_name.toUpperCase();
		var iDiv =0;
		for (i=0; i<exp_List_length; i++){
			if (expertise_List.childNodes[i].nodeName == div_name){
				iDiv++;
			}
		}
		if (!iDiv){
			var newdivname = "added_Tech_Act" + num2;
			var new_other_div = "addedTech_Other" + num2;
			idref1 = "chk_"+newdivname;
			var newdiv = document.createElement(div_name);
			if(arrTemp[0] == 'OTHER'){
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input id="Oth_'+sp_chk_name+'" type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" onclick="removeChildRow_tech(\''+sp_chk_name+'\');" checked>&nbsp;<strong><LABEL id="tit_'+sp_chk_name+'">'+obInd.value+'</LABEL></strong></td></tr>';
				expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
				expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
				expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_TechAct_Other" value="" onclick="add_Tech_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
				expertise = expertise +'</DIV></td></tr></table></div>';
			} else {
				expertise = expertise +'<div style="width:217px;float:left;"><table border="0" cellpadding="0" cellspacing="0" class="tbl_ajaxbox"><tr><td class="td_ajaxbox" width="215" align="center" valign="top" bgcolor="#F1F0F0"><input type="checkbox" class="noborder" name="'+newdivname+'[]" value="'+obInd.value+'" checked onclick="removeChildRow_tech(\''+sp_chk_name+'\');">&nbsp;<strong>'+arrInd[1]+'</strong></td></tr>';
				if(isEmpty(arrVal)){
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215" align="justify" valign="top"><DIV class="div_ajaxbox">';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_TechAct_Other" value="" onclick="add_Tech_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				} else {
					expertise = expertise + '<tr><td class="td_ajaxbox" width="215"><DIV class="div_ajaxbox">'
					for(var i=0; i < arrVal.length; i++){
						arrUnits = arrVal[i].split("-");
						expertise = expertise +'<LABEL class="lblspecialitydata" for=cb'+arrUnits[0];
						expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
						expertise = expertise +'" name="'+newdivname+'[]">&nbsp;'+arrUnits[1]+'</LABEL>';
					}
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'><INPUT id="'+idref1+'" type="checkbox" class="noborder" value="All" name="'+newdivname+'[]" onclick="check_All1(this,\''+idref1+'\');">&nbsp;All</LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx><div class="divother_s" id="'+new_other_div+'" style="display:none;"></div></LABEL>';
					expertise = expertise +'<LABEL class="lblspecialitydata" for=cbx';
					expertise = expertise +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_TechAct_Other" value="" onclick="add_Tech_Act_Row(\''+new_other_div+'\',\''+newdivname+'\');" class="btn_sm_addother"/></LABEL>';
					expertise = expertise +'</DIV></td></tr></table></div>';
				}
			}
			newdiv.innerHTML =expertise;
			expertise_List.appendChild(newdiv);
			technical_row_cnt.value = num2;
		} else {
			return false;
		}
	} else {
		removeChildRow_tech(sp_chk_name);
	}
}
function check_Tech_SP_All(chk,Ind,chk_id,arrSP){
	arrInd = Ind.split(":");
	industry_id = arrInd[0];
	var arrSP = arrSP.split( "," );
	var F = document.frmProfile;
	var str = "F."+chk_id;
	str = eval(str);
	if(chk.checked){
	for(var i = 0; i < str.length; i++){
		str[i].checked = true;
	}
	for(var i = 0; i < str.length; i++){
	arrUnits = arrSP[i].split("-");
	specialty_name = arrUnits[1].replace(/\s/g,"")
	chk_name = specialty_name+"_"+industry_id;
	chk_name = chk_name.toUpperCase();
	getTechAct(str[i],chk_name,chk_id);
	}
	} else {
	for(var i = 0; i < str.length; i++){
	str[i].checked = false;
	}
	for(var i = 0; i < str.length; i++){
	arrUnits = arrSP[i].split("-");
	specialty_name = arrUnits[1].replace(/\s/g,"")
	chk_name = specialty_name+"_"+industry_id;
	chk_name = chk_name.toUpperCase();
	removeChildRow(chk_name);
	}
	}
}
function checkAll(chk){
	var F = document.frmProfile;
	if(chk.checked){
		for(var i = 0; i < F.prefer_client.length; i++){
			F.prefer_client[i].checked = true;
		}
	} else {
		for(var i = 0; i < F.prefer_client.length; i++){
			F.prefer_client[i].checked = false;
		}
	}
}
function chk_All(chk){
	var F = document.frmProfile;
	var iCnt = 0;
	if(chk.checked){
		for(var i = 0; i < F.prefer_client.length-1; i++){
			if(!F.prefer_client[i].checked){
				iCnt++;
			}
		}
		if(!iCnt){
			F.prefer_client[F.prefer_client.length-1].checked = true;
		}
	} else {
		F.prefer_client[F.prefer_client.length-1].checked = false;
	}
}
function ext_SP_Row(obInd,OtherSP){
arrOtherSP = OtherSP.split("``");
ind_catid = arrOtherSP[0];
var added_otherSP_rowno = document.getElementById("added_OtherSP_rowno");
var other_SP = document.getElementById("sp_Other_disp");
if(other_SP.style.display == 'none'){
other_SP.style.display = 'block';
}
var newrowno = added_otherSP_rowno.value;
newrowno++;
var newdivname = "DIV_OTH_SP_"+ ind_catid + "_" + newrowno;
chk_other = "OTHER_"+ ind_catid + "_" + newrowno;
var newdiv = document.createElement(newdivname);
var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getExpertise(\''+obInd+'\',this,\''+chk_other+'\',\'\');" checked>';
newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="'+arrOtherSP[1]+'" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+ind_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;">';
newRow = newRow +'</LABEL>';
newdiv.innerHTML =newRow;
other_SP.appendChild(newdiv);
added_otherSP_rowno.value = newrowno;
}

function ext_Tech_Act_Row(divID,arrDiv,othTxt){
	var other_tech = document.getElementById(divID);
	var newrowno = other_tech.childNodes.length;
	if(other_tech.style.display == 'none'){
		other_tech.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_TechAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}" checked>';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s" maxlength="20" value="'+othTxt+'">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_tech.appendChild(newdiv);
}
function ext_sch_Row(OtherSchval){
	var added_othersch_rowno = document.getElementById("added_OtherSch_rowno");
	var other_sch = document.getElementById("sch_Other_disp");
	if(other_sch.style.display == 'none'){
		other_sch.style.display = 'block';
	}
	var newrowno = added_othersch_rowno.value;
	newrowno++;
	var newdivname = "Other_Sch"+ newrowno;
	newdivname = newdivname.toUpperCase();
	var newOpt = "opt_Other_Sch"+ newrowno;
	var newOtherTit = "other_Sch_Tit"+ newrowno;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr height="20">';
	newRow = newRow + '<td width="25" align="left">';
	newRow = newRow +'<input type="checkbox" class="noborder" id="pref_Sch" name="'+newOpt+'"value="1" onclick="if(this.checked){document.getElementById(\''+newOtherTit+'\').value=\'\';document.getElementById(\''+newOtherTit+'\').disabled=false;} else {document.getElementById(\''+newOtherTit+'\').value=\'Other Schedule'+newrowno+'\';document.getElementById(\''+newOtherTit+'\').disabled=true;}" checked /></td>';
	newRow = newRow +'<td align="left"><input type="text" id="'+newOtherTit+'" name="'+newOtherTit+'" value="'+OtherSchval+'" style="width:110px;"></td>';
	newRow = newRow +'</tr></tbody></table>';
	newdiv.innerHTML =newRow;
	other_sch.appendChild(newdiv);
	added_othersch_rowno.value = newrowno;
}
function ext_Hob_Row(hob_catid,rowNo){
	var other_hob = document.getElementById("hob_Other_disp");
	if(other_hob.style.display == 'none'){
		other_hob.style.display = 'block';
	}
	var newdivname = "div_Oth_Hob_"+ hob_catid + "_" + rowNo;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ hob_catid + "_" + rowNo;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getHobbyAct(this,\''+chk_other+'\',\'\');" checked>';
	tmp_sp_Name = 'tit_'+chk_other;
	ext_SP_title = document.getElementById(tmp_sp_Name).innerHTML;
	newRow = newRow +'<input type="text" name="txt_'+chk_other+'" size="20"maxlength="18" value="'+ext_SP_title+'" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+hob_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hob.appendChild(newdiv);
}
function ext_check_lang_all_status(chkid,chk_all){
	F = document.frmProfile;
	chkid = "F." + chkid;
	chkid = eval(chkid);
	chk_all = "F." + chk_all;
	chk_all = eval(chk_all);
	var iCnt = 0;
	for(var i = 0; i < chkid.length; i++){
		if(!chkid[i].checked){
			iCnt++;
		}
	}
	if(!iCnt){
		chk_all.checked = true;
	}
}
function ext_Hobby_Act_Row(divID,arrDiv,othTxt){
	var other_hobby = document.getElementById(divID);
	var newrowno = other_hobby.childNodes.length;
	if(other_hobby.style.display == 'none'){
		other_hobby.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_HobbyAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}" checked>';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="20" value="'+othTxt+'">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hobby.appendChild(newdiv);
}
function ext_Hobby_Row(hobby_catid,rowNo){
	var other_hobby = document.getElementById("hobby_Other_disp");
	if(other_hobby.style.display == 'none'){
	other_hobby.style.display = 'block';
	}
	var newdivname = "div_Oth_Hob_"+ hobby_catid + "_" + rowNo;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ hobby_catid + "_" + rowNo;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getHobbyAct(this,\''+chk_other+'\',\'\');" checked>';
	tmp_sp_Name = 'tit_'+chk_other;
	ext_SP_title = document.getElementById(tmp_sp_Name).innerHTML;
	newRow = newRow +'<input type="text" name="txt_'+chk_other+'" size="20"maxlength="18" value="'+ext_SP_title+'" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+hobby_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hobby.appendChild(newdiv);
}
function ext_Comp_Act_Row(divID,arrDiv,othTxt){
	var other_comp = document.getElementById(divID);
	var newrowno = other_comp.childNodes.length;
	if(other_comp.style.display == 'none'){
		other_comp.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_CompAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}" checked>';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="'+othTxt+'">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_comp.appendChild(newdiv);
}
function ext_Comp_Row(comp_catid,rowNo){
	var other_comp = document.getElementById("comp_Other_disp");
	if(other_comp.style.display == 'none'){
		other_comp.style.display = 'block';
	}
	var newdivname = "div_Oth_Comp_"+ comp_catid + "_" + rowNo;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ comp_catid + "_" + rowNo;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getCompAct(this,\''+chk_other+'\',\'\');" checked>';
	tmp_sp_Name = 'tit_'+chk_other;
	ext_SP_title = document.getElementById(tmp_sp_Name).innerHTML;
	newRow = newRow +'<input type="text" name="txt_'+chk_other+'" size="20"maxlength="18" value="'+ext_SP_title+'" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+comp_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;">';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_comp.appendChild(newdiv);
}
	function ext_Lang_Row(divID,arrName,langTxt){
		var idRef = "Oth_chk_"+arrName;
		var other_lang = document.getElementById(divID);
		var newrowno = other_lang.childNodes.length;
		if(other_lang.style.display == 'none'){
			other_lang.style.display = 'block';
		}
		newrowno++;
		var newdivname = arrName + "Other_Lang"+ newrowno;
		newdivname = newdivname.toUpperCase();
		chk_other = arrName + "_Other_"+ newrowno;
		chk_other = chk_other.toUpperCase();
		var newdiv = document.createElement(newdivname);
		var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
		newRow = newRow +'<INPUT id="'+idRef+'" type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrName+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}" checked>';
		newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="'+langTxt+'">';
		newRow = newRow +'</LABEL>';
		newdiv.innerHTML =newRow;
		other_lang.appendChild(newdiv);
	}
	function ext_Tech_Row(tech_catid,rowNo){
		var other_tech = document.getElementById("tech_Other_disp");
		if(other_tech.style.display == 'none'){
			other_tech.style.display = 'block';
		}
		var newdivname = "div_Oth_Tech_"+ tech_catid + "_" + rowNo;
		newdivname = newdivname.toUpperCase();
		chk_other = "Other_"+ tech_catid + "_" + rowNo;
		chk_other = chk_other.toUpperCase();
		var newdiv = document.createElement(newdivname);
		var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
		newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getTechAct(this,\''+chk_other+'\',\'\');" checked>'; 
		tmp_sp_Name = 'tit_'+chk_other;
		ext_SP_title = 	document.getElementById(tmp_sp_Name).innerHTML;
		newRow = newRow +'<input type="text" name="txt_'+chk_other+'" size="20"  maxlength="18" value="'+ext_SP_title+'" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+tech_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;">';
		newRow = newRow +'</LABEL>';
		newdiv.innerHTML =	newRow;
		other_tech.appendChild(newdiv);
	}
	function ext_Exp_Row(divID,arrDiv,othTxt){
		var idRef = "Oth_chk_"+arrDiv;
		var other_exp = document.getElementById(divID);
		var newrowno = other_exp.childNodes.length;
		if(other_exp.style.display == 'none'){
			other_exp.style.display = 'block';
		}
		newrowno++;
		var newdivname = arrDiv + "Other_ExpAct"+ newrowno;
		newdivname = newdivname.toUpperCase();
		chk_other = arrDiv + "_Other_"+ newrowno;
		chk_other = chk_other.toUpperCase();
		var newdiv = document.createElement(newdivname);
		var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
		newRow = newRow +'<INPUT id="'+idRef+'" type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}" checked>';
		newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="'+othTxt+'">';
		newRow = newRow +'</LABEL>';
		newdiv.innerHTML =newRow;
		other_exp.appendChild(newdiv);
	}
	function skipNext(curr,nxtFocus){
		var F = document.frmProfile;
		var str = "F."+ nxtFocus;
		str = eval(str);
		if(curr.value.length == 3){
			str.focus();
		}
	}
	function hideLayer(id) {
		var lyr = getElemRefs(id);
		if (lyr && lyr.css)
			lyr.css.visibility = "hidden";
	}
	function getCity(obCoun,obSt,obCity){
		var sUrl;
		if(obCoun.value == 1 && obSt.value != 0){
			sUrl = "getData.php?mode=getCity&state="+obSt.value;
			var arrVal = procRequest(sUrl);
			document.getElementById("cityTd").innerHTML="city:<br/><select id='city1' name='city1'  style='width:120px;'>" + arrVal + "</select>";
		}
	}
	function roll_over(imageid){
		var arrInd = imageid.split(":");
		var DivName = arrInd[1];
		var imgid = document.getElementById(arrInd[0]);
		if(imgid.src.indexOf('nolines_plus.gif')!=-1){
			imgid.src = 'images/nolines_minus.gif';
			document.getElementById(DivName).style.display = "block";
		}else{
			imgid.src = 'images/nolines_plus.gif';
			document.getElementById(DivName).style.display = "none";
		}
	}
	function getCity1(){
		var F = document.frmLooking1;
		var sUrl;
		if(F.country1.value == 1 && F.state1.value != 0) {
			sUrl = "getData.php?mode=getCity&state="+F.state1.value;
			var arrVal = procRequest(sUrl);
			clearList(document.getElementById("city1"));
			fillList(arrVal, document.getElementById("city1"));
			document.getElementById("txtzip1").value = "";
		} else {
			clearList1(document.getElementById("city1"));
		}
	}
	function validateZip(obZip){
		var sUrl;
	if(!checkZipFlag){
		if(!isEmpty(obZip.value)){
			sUrl = "getData.php?mode=validateZip&state=&city=&zip="+obZip.value;
			var status = procRequest(sUrl);
			if(status == 'false'){
				alert('Please enter valid zip code');
				obZip.focus();
			}else {
				if(obZip == document.getElementById('txtzip0')){
					document.getElementById('state0').value=status[0];
					document.getElementById('city0').value=status[1];
				}else if(obZip == document.getElementById('txtzip1')){
					document.getElementById('state1').value=status[0];
					document.getElementById('city1').value=status[1];
				}else if(obZip == document.getElementById('txtzip2')){
					document.getElementById('state2').value=status[0];
					document.getElementById('city2').value=status[1];
				}else if(obZip == document.getElementById('txtzip3')){
					document.getElementById('state3').value=status[0];
					document.getElementById('city3').value=status[1];
				}else if(obZip == document.getElementById('txtzip4')){
					document.getElementById('state4').value=status[0];
					document.getElementById('city4').value=status[1];
				}else if(obZip == document.getElementById('txtzip5')){
					document.getElementById('state5').value=status[0];
					document.getElementById('city5').value=status[1];
				}else if(obZip == document.getElementById('biztxtzip1')){
					document.getElementById('bizstate1').value=status[0];
					document.getElementById('bizcity1').value=status[1];
				}else if(obZip == document.getElementById('biztxtzip2')){
					document.getElementById('bizstate2').value=status[0];
					document.getElementById('bizcity2').value=status[1];
				}
			}
		}
	}
	}
	function validateZipXX(obZip){
		var sUrl;
		if(!checkZipFlag){
			if(!isEmpty(obZip.value)){
				sUrl = "getData.php?mode=validateZip&state=&city=&zip="+obZip.value;
				var status = procRequest(sUrl);
				if(status == 'false'){
					alert('Please enter valid zip code');
					obZip.focus();
				}else {
					document.getElementById('statemx1').value=status[0];
					document.getElementById('citymx1').value=status[1];
				}
			}
		}
	}
	
function check_All(chk,chk_id,obOther){
var F = document.frmProfile;
var str = "F."+chk_id;
str = eval(str);
if(chk.checked){
for(var i = 0; i < str.length; i++){
str[i].checked = true;
}
} else {
for(var i = 0; i < str.length; i++){
str[i].checked = false;
}
}
}
function check_All1(chk,chk_id){
var F = document.frmProfile;
var str = "F."+chk_id;
str = eval(str);
if(chk.checked){
for(var i = 0; i < str.length; i++){
str[i].checked = true;
}
} else {
for(var i = 0; i < str.length; i++){
str[i].checked = false;
}
}
}
function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
			theLyr = doc.layers[i];
			if (theLyr.name == lyr)
				return theLyr;
			else if (theLyr.document.layers.length > 0)
				if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
					return theLyr;
		}
		return null;
	}
}
function getCompSubCat(obInd){
	if(obInd.value){
		if(obInd.value != 0){
			var getSkill = 1;
			arrInd = obInd.value.split(":");
		}else{
			var getSkill = 0;
		}
	}else{
		getSkill = 1;
		arrInd = obInd.split(":");
	}
	if (getSkill != 0){
		var sUrl = "getData.php?mode=getCompSubCat&pid="+arrInd[0];
		var arrVal = procRequest(sUrl);
		document.getElementById("cbo_SubComp").style.display = "none";
		document.getElementById("comp_SubCat_lst").style.display = "block";
		var arrUnits;
		var compSubCat = "";
		var obElm = document.getElementById("comp_SubCat_lst");
		var expertise_List = document.getElementById("compAct_List1");
		var exp_List_length = expertise_List.childNodes.length;
		if(!isEmpty(arrVal)){
			for(var i=0; i < arrVal.length; i++){
				arrUnits = arrVal[i].split("-");
				industry_name = arrInd[1].replace(/\s/g,"");
				chk_id = "chk_"+arrInd[0]+"_"+industry_name;
				chk_id = chk_id.toUpperCase();
				specialty_name = arrUnits[1].replace(/\s/g,"")
				chk_name = specialty_name+"_"+arrInd[0];
				chk_name = chk_name.toUpperCase();
				compSubCat = compSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cb'+arrUnits[0];
				compSubCat = compSubCat +'><INPUT id="'+chk_id+'" type="checkbox" class="noborder" value="'+arrUnits[0]+':'+arrUnits[1];
				compSubCat = compSubCat +'" name="'+chk_name+'" onclick="getCompAct(this,\''+chk_name+'\',\''+chk_id+'\');"';
				if(exp_List_length > 0){
					var div_name = "div_"+chk_name;
					div_name = div_name.toUpperCase();
					for (j=0; j<exp_List_length; j++){
						if (expertise_List.childNodes[j].nodeName == div_name){
							compSubCat = compSubCat +' checked';
						}
					}
				}
				compSubCat = compSubCat +'>&nbsp;'+arrUnits[1]+'</LABEL>';
			}
			compSubCat = compSubCat +'<LABEL class="lblspec" style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx';
			compSubCat = compSubCat +'><INPUT id="compSubCat_All" type="checkbox" class="noborder" value="All" name="'+chk_name+'" onclick="check_Comp_SP_All(this,\''+obInd.value+'\',\''+chk_id+'\',\''+arrVal+'\');">&nbsp;All</LABEL>';
		}
		compSubCat = compSubCat +'<LABEL class="lblspecialitydata" for=cbx><div id="comp_Other_disp" style="display:none;"></div></LABEL>';
		compSubCat = compSubCat +'<LABEL class="lblspecialitydata" for=cbx';
		compSubCat = compSubCat +'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="add_comp_Other" value="" onclick="add_Comp_Row('+arrInd[0]+');" class="btn_sm_addother"/></LABEL>';
		obElm.innerHTML = compSubCat;
		if(exp_List_length > 0){
			for (k=0; k<exp_List_length;k++){
				myRegexp = "/^DIV_OTHER_"+arrInd[0]+"_/";
				myRegexp = eval(myRegexp);
				if(expertise_List.childNodes[k].nodeName.match(myRegexp)){
					var rowno = expertise_List.childNodes[k].nodeName.split(myRegexp);
					ext_Comp_Row(arrInd[0],rowno[1]);
				}
			}
		}
	} else {
		document.getElementById("cbo_SubComp").style.display = "block";
		document.getElementById("comp_SubCat_lst").style.display = "none";
	}
}
function add_Tech_Row(tech_catid){
	var added_othertech_rowno = document.getElementById("added_OtherTech_rowno");
	var other_tech = document.getElementById("tech_Other_disp");
	if(other_tech.style.display == 'none'){
		other_tech.style.display = 'block';
	}
	var newrowno = added_othertech_rowno.value;
	newrowno++;
	var newdivname = "div_Oth_Tech_"+ tech_catid + "_" + newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ tech_catid + "_" + newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getTechAct(this,\''+chk_other+'\',\'\');">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="Other" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+tech_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;"disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_tech.appendChild(newdiv);
	added_othertech_rowno.value = newrowno;
}
function add_Tech_Act_Row(divID,arrDiv){
	var other_tech = document.getElementById(divID);
	var newrowno = other_tech.childNodes.length;
	if(other_tech.style.display == 'none'){
		other_tech.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_TechAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="Other" disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_tech.appendChild(newdiv);
}
function add_Hobby_Row(hobby_catid){
	var added_otherhobby_rowno = document.getElementById("added_OtherHobby_rowno");
	var other_hobby = document.getElementById("hobby_Other_disp");
	if(other_hobby.style.display == 'none'){
		other_hobby.style.display = 'block';
	}
	var newrowno = added_otherhobby_rowno.value;
	newrowno++;
	var newdivname = "div_Oth_Hob_"+ hobby_catid + "_" + newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ hobby_catid + "_" + newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getHobbyAct(this,\''+chk_other+'\',\'\');">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="Other" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+hobby_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;"disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hobby.appendChild(newdiv);
	added_otherhobby_rowno.value = newrowno;
}

function add_Lang_Row(divID,arrName){
	var idRef = "Oth_chk_"+arrName;
	var other_lang = document.getElementById(divID);
	var newrowno = other_lang.childNodes.length;
	if(other_lang.style.display == 'none'){
		other_lang.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrName + "Other_Lang"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrName + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT id="'+idRef+'" type="checkbox" value="Other_'+newrowno+'" name="'+arrName+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="Other" disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_lang.appendChild(newdiv);
}
function add_Lic_Row(){
	var added_otherlic_rowno = document.getElementById("added_Otherlic_rowno");
	var other_lic = document.getElementById("lic_Other_disp");
	if(other_lic.style.display == 'none'){
		other_lic.style.display = 'block';
	}
	var newrowno = added_otherlic_rowno.value;
	newrowno++;
	var newdivname = "Other_Lic"+ newrowno;
	var newOpt = "opt_Other_Lic"+ newrowno;
	var newOtherTit = "other_Lic_Tit"+ newrowno;
	var newtxtOtherLic = "txt_Other_Lic"+ newrowno;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr>';
	newRow = newRow + '<td width="25" align="left" valign="middle" class="tdFields">';
	newRow = newRow +'<input type="checkbox" id="lic_Info" name="'+newOpt+'"value="1" onclick="if(this.checked){document.getElementById(\''+newOtherTit+'\').value=\'\';document.getElementById(\''+newOtherTit+'\').disabled=false;} else {document.getElementById(\''+newOtherTit+'\').value=\'Title'+newrowno+' #:\';document.getElementById(\''+newOtherTit+'\').disabled=true;}ToogledivTag(this,\''+newtxtOtherLic+'\',\''+newtxtOtherLic+'\');" /></td>';
	newRow = newRow +'<td width="111" align="left" valign="middle"><input type="text" id="'+newOtherTit+'" name="'+newOtherTit+'" value="Title'+newrowno+' #:" style="width:110px;" disabled></td>';
	newRow = newRow +'<td width="515" align="left" valign="middle" class="tdFields"><input type="text" id="'+newtxtOtherLic+'" name="'+newtxtOtherLic+'" value="" size="20" style="display:none;"/></td></tr></tbody></table>';
	newdiv.innerHTML =newRow;
	other_lic.appendChild(newdiv);
	added_otherlic_rowno.value = newrowno;
}
function add_Comp_Act_Row(divID,arrDiv){
	var other_comp = document.getElementById(divID);
	var newrowno = other_comp.childNodes.length;
	if(other_comp.style.display == 'none'){
		other_comp.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_CompAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="Other" disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_comp.appendChild(newdiv);
}
function add_Comp_Row(comp_catid){
	var added_othercomp_rowno = document.getElementById("added_OtherComp_rowno");
	var other_comp = document.getElementById("comp_Other_disp");
	if(other_comp.style.display == 'none'){
		other_comp.style.display = 'block';
	}
	var newrowno = added_othercomp_rowno.value;
	newrowno++;
	var newdivname = "div_Oth_Comp_"+ comp_catid + "_" + newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ comp_catid + "_" + newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getCompAct(this,\''+chk_other+'\',\'\');">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="Other" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+comp_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;"disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_comp.appendChild(newdiv);
	added_othercomp_rowno.value = newrowno;
}
function add_Hob_Row(hob_catid){
	var added_otherhob_rowno = document.getElementById("added_Otherhob_rowno");
	var other_hob = document.getElementById("hob_Other_disp");
	if(other_hob.style.display == 'none'){
		other_hob.style.display = 'block';
	}
	var newrowno = added_otherhob_rowno.value;
	newrowno++;
	var newdivname = "div_Oth_Hob_"+ hob_catid + "_" + newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = "Other_"+ hob_catid + "_" + newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getHobbyAct(this,\''+chk_other+'\',\'\');">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="Other" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+hob_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;"disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hob.appendChild(newdiv);
	added_otherhob_rowno.value = newrowno;
}
function add_Hob_Act_Row(divID,arrDiv){
	var other_hob = document.getElementById(divID);
	var newrowno = other_hob.childNodes.length;
	if(other_hob.style.display == 'none'){
		other_hob.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_HobAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="Other" disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_hob.appendChild(newdiv);
}
var addedPrefLocNo = 1;
function add_prefLoc_Row(){
	addedPrefLocNo++;
	divID = "top_Pref_loc" + addedPrefLocNo;
	rem_btn = "rem_btn" + addedPrefLocNo;
	document.getElementById(divID).style.display = "block";
	document.getElementById(rem_btn).style.display = "block";
	document.getElementById(rem_btn).innerHTML = '<input type="button" name="But_'+rem_btn+'" value="Remove" onclick="rem_prefLoc_Row();" class="sbutton">';
	for(i=2;i<addedPrefLocNo;i++){
		hideRem_btn = "rem_btn" + i;
		document.getElementById(hideRem_btn).innerHtml = '';
		document.getElementById(hideRem_btn).style.display="none";
	}
	if(addedPrefLocNo == 5){
		document.getElementById("add_Loc").style.display = "none";
	}
	document.getElementById("added_pref_loc_rowno").value = addedPrefLocNo;
}
function add_Exp_Row(divID,arrDiv){
	var idRef = "Oth_chk_"+arrDiv;
	var other_exp = document.getElementById(divID);
	var newrowno = other_exp.childNodes.length;
	if(other_exp.style.display == 'none'){
		other_exp.style.display = 'block';
	}
	newrowno++;
	var newdivname = arrDiv + "Other_ExpAct"+ newrowno;
	newdivname = newdivname.toUpperCase();
	chk_other = arrDiv + "_Other_"+ newrowno;
	chk_other = chk_other.toUpperCase();
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT id="'+idRef+'" type="checkbox" class="noborder" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="17" class="othrtxtbox_s"maxlength="20" value="Other" disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_exp.appendChild(newdiv);
}
function add_SP_Row(ind){
	arrInd = ind.split(":");
	ind_catid = arrInd[0];
	var added_otherSP_rowno = document.getElementById("added_OtherSP_rowno");
	var other_SP = document.getElementById("sp_Other_disp");
	if(other_SP.style.display == 'none'){
		other_SP.style.display = 'block';
	}
	var newrowno = added_otherSP_rowno.value;
	newrowno++;
	var newdivname = "DIV_OTH_SP_"+ ind_catid + "_" + newrowno;
	chk_other = "OTHER_"+ ind_catid + "_" + newrowno;
	var newdiv = document.createElement(newdivname);
	var newRow = '<LABEL class="lblspecialitydata" for=cbx>';
	newRow = newRow +'<INPUT type="checkbox" class="noborder" value="Other" name="'+chk_other+'" onclick="if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;} getExpertise(\''+ind+'\',this,\''+chk_other+'\',\'\');">';
	newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="20" class="othrtxtbox_b"maxlength="18" value="Other" onkeyup="javascript:document.getElementById(\'Oth_'+chk_other+'\').value=\'Other:'+ind_catid+'``\'+this.value;document.getElementById(\'tit_'+chk_other+'\').innerHTML=this.value;"disabled>';
	newRow = newRow +'</LABEL>';
	newdiv.innerHTML =newRow;
	other_SP.appendChild(newdiv);
	added_otherSP_rowno.value = newrowno;
}
function add_sch_Row(){
var added_othersch_rowno = document.getElementById("added_OtherSch_rowno");
var other_sch = document.getElementById("sch_Other_disp");
if(other_sch.style.display == 'none'){
other_sch.style.display = 'block';
}
var newrowno = added_othersch_rowno.value;
newrowno++;
var newdivname = "Other_Sch"+ newrowno;
newdivname = newdivname.toUpperCase();
var newOpt = "opt_Other_Sch"+ newrowno;
var newOtherTit = "other_Sch_Tit"+ newrowno;
var newdiv = document.createElement(newdivname);
var newRow = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr height="20">';
newRow = newRow + '<td width="25" align="left">';
newRow = newRow +'<input type="checkbox" class="noborder" id="pref_Sch" name="'+newOpt+'"value="1" onclick="if(this.checked){document.getElementById(\''+newOtherTit+'\').value=\'\';document.getElementById(\''+newOtherTit+'\').disabled=false;} else {document.getElementById(\''+newOtherTit+'\').value=\'Other Schedule'+newrowno+'\';document.getElementById(\''+newOtherTit+'\').disabled=true;}" /></td>';
newRow = newRow +'<td align="left"><input type="text" id="'+newOtherTit+'" name="'+newOtherTit+'" value="Other Schedule'+newrowno+'" style="width:300px;" disabled></td>';
newRow = newRow +'</tr></tbody></table>';
newdiv.innerHTML =newRow;
other_sch.appendChild(newdiv);
added_othersch_rowno.value = newrowno;
}
function add_job_Row(){
for(var k=const_add_more;k<=add_more;k++){
document.getElementById("job_add_more"+k).style.display = "block";
}
if(add_more == "10"){
document.getElementById("job_add_more_btn").style.display = "none";
}
add_more++;
}
function add_to_rolodex_single(objval, id){
	if(id == "8"){
		popupLoginRegister();
	} else {
		sUrl = "getData.php?mode=user_contact_limit&userid=" + objval;
		var arrVal = procRequest(sUrl);
		if(arrVal == "1"){
			alert("Your monthly limit to contact members of this industry has been ended");
		} else if(arrVal == "2"){
			popupWorker();
		} else if(arrVal == "3"){
			popupGuest();
		} else {
			var sUrl;
			sUrl = "add_to_rolodex.php?id="+objval;
			var arrVal = procRequest(sUrl);
			if(arrVal == "none"){
				alert("Login or register to add in My Clique");
				return false;
			}
			if(arrVal == "exist"){
				alert("Contact already exist in My Clique");
			}else {
				if(arrVal == "done"){
					alert("Contact added successfully in My Clique..");
				}else if(arrVal == "currentuser"){
						alert("You cannot add yourself into My Clique.");
				}else {
					alert("Unable to add contact in My Clique");
				}
			}
		}
	}
}
function adding_to_rolodex(){
	var F = document.frmBody;
	var iCount = 0,iLen;
	if(!F.added_Usr_Ids)
		return false;
	if(!F.added_Usr_Ids.length){
		if(!F.added_Usr_Ids.checked){
			alert("Please select records");
			return false;
		}
	}else{
		var get_ids = '';
		message = 0;
		for(var i = 0; i < F.added_Usr_Ids.length; i++){
			if(F.added_Usr_Ids[i].checked){
				sUrl = "getData.php?mode=user_contact_limit&userid=" + F.added_Usr_Ids[i].value;
				var arrVal = procRequest(sUrl);
				if(arrVal == "1"){
					message = 1;
				} else if(arrVal == "2"){
					message = 2;
				} else if(arrVal == "3"){
					message = 3;
				} else {
					get_ids += F.added_Usr_Ids[i].value + ',';
				}
				iCount++;
			}
		}
		if(iCount == 0){
			alert("Please select records");
			return false;
		} else if(message == 1){
			alert("Your monthly limit to contact members of this industry has been ended");
			return false;
		} else if(message == 2){
			popupWorker();
			return false;
		} else if(message == 3){
			popupGuest();
			return false;
		} else {
			sUrl = "multiple_add_to_rolodex.php?array_ids="+get_ids;
			var arrVal = procRequest(sUrl);
			if(arrVal == "none"){
				alert("Login or register to add in My Clique");
				return false;
			}
			if(arrVal == "exist"){
				alert("Contact already exist in My Clique");
			}else {
				if(arrVal == "done"){
					alert("Contact added successfully in My Clique..");
				}else if(arrVal == "currentuser"){
					alert("You cannot add yourself into My Clique.");
				}else {
					alert("Unable to add contact in My Clique");
				}
			}
		}
	}
}
function add_edu(obj){
	if(obj.checked){
		window.location.href = "add_education.php?choice=add_education";
	}
}
function adding_to_listing(){
var F = document.frmSearch;
var iCount = 0,iLen;
if(!F.added_Usr_Ids) return false;
if(!F.added_Usr_Ids.length){
if(!F.added_Usr_Ids.checked){
alert("Please select records");
return false;
}
}else{
var get_ids = '';
for(var i = 0; i < F.added_Usr_Ids.length; i++){
if(F.added_Usr_Ids[i].checked){
get_ids += F.added_Usr_Ids[i].value + ',';
iCount++;
}
}
if(iCount == 0){
alert("Please select records");
return false;
}
sUrl = "multiple_add_to_listing.php?array_ids="+get_ids;
var arrVal = procRequest(sUrl);
if(arrVal == "none"){
alert("Login or register to add in your listing");
return false;
}
if(arrVal == "exist"){
alert("Ad already exist in your listing.");
} else {
if(arrVal == "done"){
alert("Ad(s) added successfully in your listing..");
} else if(arrVal == "currentuser"){
alert("User cant add his ads in his listing.");
} else {
alert("Unable to add ad in your listing");
}
}
}
}

function add_to_list(obj){
	var sUrl;
	sUrl = "add_to_list.php?id="+obj;
	var arrVal = procRequest(sUrl);
	if(arrVal == "none"){
		alert("Login or register to add in your listing");
		return false;
	} else {
		if(arrVal == "exist"){
			alert("Ad already exist in your listing.");
		} else if(arrVal == "done"){
			alert("Ad(s) added successfully in your listing..");
		} else if(arrVal == "currentuser"){
			alert("User cant add his ads in his listing.");
		} else {
			alert("Unable to add ad in your listing");
		}
	}
}
function addEducation(chk,txtVal,cboYear,cboOpt,from){
var F = document.frmProfile;
var chk = "F."+chk;
chk = eval(chk);
if(chk.checked){
if(cboOpt.value == "Graduated" || cboOpt.value == "In Complete" || cboOpt.value == "In Progress"){
if((isEmpty(txtVal.value) || (cboYear.value == 0)) && cboOpt.value == "Graduated"){
alert("Please enter education detail");
if(cboYear.value == 0){
cboYear.focus();
}
if(isEmpty(txtVal.value)){
txtVal.focus();
}
if(from == "v"){
return 0;
} else{
return false;
}
}else if(isEmpty(txtVal.value)){
alert("Please enter education detail");
if(isEmpty(txtVal.value)){
txtVal.focus();
}
if(from == "v"){
return 0;
} else{
return false;
}
}
if(document.getElementById("added_Edu_disp").style.display == "none"){
document.getElementById("added_Edu_disp").style.display = "block";
}
}
edu_Level = chk.value;
edu_Program = txtVal.value;
edu_Year = cboYear.value;
if(edu_Year == 0){
edu_Year = "NA";
}
var added_EduRowno = document.getElementById("added_EduRowno");
var addEdu = document.getElementById("addEducation");
var newdivname = "addEduRow"+ edu_num;
newdivname = newdivname.toUpperCase();
var newdiv = document.createElement(newdivname);
var newRow = '<table border="0" width="100%" cellpadding="0" cellspacing="0" class="bdr"><tbody><trheight="25">';
newRow = newRow +'<td width="25%" height="30" align="left" valign="top"><input type="hidden" name="'+newdivname+'[]" value="'+edu_Level+'">&nbsp;'+edu_Level+'</td>';
newRow = newRow +'<td width="45%" align="left" valign="top"><input type="hidden" name="'+newdivname+'[]" value="'+edu_Program+'">&nbsp;'+edu_Program+'</td>';
newRow = newRow +'<td width="15%" align="left" valign="top"><input type="hidden" name="'+newdivname+'[]" value="'+edu_Year+'">&nbsp;'+edu_Year+'</td>';
newRow = newRow + '<input type="hidden" name="'+newdivname+'[]" value="'+cboOpt.value+'">';
newRow = newRow +'<td width="15%" align="center" valign="top"><a href="#" onclick="removeEdurow(\''+newdivname+'\');"><img src="images/icon_delete.gif" border="0" width="15" height="15"></a></td></tr></tbody></table>';
if(cboOpt.value != "Graduated" && cboOpt.value != "In Progress" && cboOpt.value != "In Complete"){
newdiv.style.display = "block";
}
newdiv.innerHTML =newRow;
addEdu.appendChild(newdiv);
added_EduRowno.value = edu_num;
edu_num++;
txtVal.value = "";
cboYear.value = 0;
}
}
function remove_from_rolodex_single(objval){
	var sUrl;
	sUrl = "remove_to_rolodex.php?id="+objval;
	var arrVal = procRequest(sUrl);
	if(arrVal == "unexist"){
		alert("Contact is not available in My Clique");
	}else {
		if(arrVal == "done"){
			alert("Contact deleted successfully from My Clique");
		}else {
		alert("Unable to delete contact from My Clique");
		}
	}
}
function add_prefLoc_Row_new(){
	if(document.frmProfile.added_pref_loc_rowno.value != "")
		addedPrefLocNo = document.frmProfile.added_pref_loc_rowno.value;
	if(addedPrefLocNo == "1"){
		if(document.frmProfile.sel_zip_city1.value == "0"){
			alert("Please select working location");
			document.frmProfile.sel_zip_city1.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city1.value == "1" && document.frmProfile.txtzip1.value == ""){
			alert("Please enter valid zip code");
			document.frmProfile.txtzip1.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city1.value == "2" && document.frmProfile.pref_state1.value == "0"){
			alert("Please select state");
			document.frmProfile.pref_state1.focus();
			return false;
		}
	} else if(addedPrefLocNo == "2"){
		if(document.frmProfile.sel_zip_city2.value == "0"){
			alert("Please select working location");
			document.frmProfile.sel_zip_city2.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city2.value == "1" && document.frmProfile.txtzip2.value == ""){
			alert("Please enter valid zip code");
			document.frmProfile.txtzip2.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city2.value == "2" && document.frmProfile.pref_state2.value == "0"){
			alert("Please select state");
			document.frmProfile.pref_state2.focus();
			return false;
		}
	} else if(addedPrefLocNo == "3"){
		if(document.frmProfile.sel_zip_city3.value == "0"){
			alert("Please select working location");
			document.frmProfile.sel_zip_city3.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city3.value == "1" && document.frmProfile.txtzip3.value == ""){
			alert("Please enter valid zip code");
			document.frmProfile.txtzip3.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city3.value == "2" && document.frmProfile.pref_state3.value == "0"){
			alert("Please select state");
			document.frmProfile.pref_state3.focus();
			return false;
		}
	} else if(addedPrefLocNo == "4"){
		if(document.frmProfile.sel_zip_city4.value == "0"){
			alert("Please select working location");
			document.frmProfile.sel_zip_city4.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city4.value == "1" && document.frmProfile.txtzip4.value == ""){
			alert("Please enter valid zip code");
			document.frmProfile.txtzip4.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city4.value == "2" && document.frmProfile.pref_state4.value == "0"){
			alert("Please select state");
			document.frmProfile.pref_state4.focus();
			return false;
		}
	} else if(addedPrefLocNo == "5"){
		if(document.frmProfile.sel_zip_city5.value == "0"){
			alert("Please select working location");
			document.frmProfile.sel_zip_city5.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city5.value == "1" && document.frmProfile.txtzip5.value == ""){
			alert("Please enter valid zip code");
			document.frmProfile.txtzip5.focus();
			return false;
		} else if (document.frmProfile.sel_zip_city5.value == "2" && document.frmProfile.pref_state5.value == "0"){
			alert("Please select state");
			document.frmProfile.pref_state5.focus();
			return false;
		}
	}
	addedPrefLocNo++;
	divID = "top_Pref_loc" + addedPrefLocNo;
	for(var i=1;i<=5;i++){
		if(i == addedPrefLocNo)
			document.getElementById("sel_zip_city_disp"+addedPrefLocNo).style.display = "block";
		else
			document.getElementById("sel_zip_city_disp"+i).style.display = "none";
	}
	if(addedPrefLocNo == 5){
		document.getElementById("add_Loc").style.display = "none";
	}
	document.getElementById("added_pref_loc_rowno").value = addedPrefLocNo;
}
function addBizCnt(){
	var F = document.frmProfile;
	if(isEmpty(F.bizTitle.value)){
		alert("Please enter title");
		F.bizTitle.focus();
		return false;
	}
	if(isEmpty(F.bizCntFirst.value)){
		alert("Please enter first name");
		F.bizCntFirst.focus();
		return false;
	}
	if(isEmpty(F.bizCntLast.value)){
		alert("Please enter last name");
		F.bizCntLast.focus();
		return false;
	}
	var contact_ph = "";
	var mob_ph = "";
	if(isEmpty(F.biz_cnt_US_1.value) || isEmpty(F.biz_cnt_US_2.value) || isEmpty(F.biz_cnt_US_3.value)){
		alert("Please enter phone");
		F.biz_cnt_US_1.focus();
		return false;
	} else {
		contact_ph = F.biz_cnt_US_1.value + "-" + F.biz_cnt_US_2.value + "-" + F.biz_cnt_US_3.value;
	}
	if(F.biz_cnt_US_1.value.length < 3 || F.biz_cnt_US_2.value.length < 3 || F.biz_cnt_US_3.value.length < 4){
		alert("Please enter valid phone number");
		F.biz_cnt_US_1.focus();
		return false;
	}
	if(F.biz_cnt_US_1_mobile.value.length == 3 && F.biz_cnt_US_2_mobile.value.length == 3 && F.biz_cnt_US_3_mobile.value.length == 4){
		mob_ph = F.biz_cnt_US_1_mobile.value + "-" + F.biz_cnt_US_2_mobile.value + "-" + F.biz_cnt_US_3_mobile.value;
	}
	if(isEmpty(F.bizCntEmail.value)){
		alert("Please enter email for authorized contact information");
		F.bizCntEmail.focus();
		return false;
	} else {
		if(!isEmail(F.bizCntEmail)){
			return false;
		}
	}
	if(document.getElementById("added_bizCnt").style.display == "none"){
		document.getElementById("added_bizCnt").style.display = "block";
	}
	var bizCnt_row_cnt = document.getElementById("addedBizCntRowno");
	var addBizCnt = document.getElementById("addBizCnt");
	var newdivname = "addBizCntRow"+ hobbyRow;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table border="1" width="100%" cellpadding="0" cellspacing="0" class="bdr"><tbody><tr height="25">';
	newRow = newRow +'<td ><input type="hidden" name="'+newdivname+'[]" value="'+F.bizTitle.value+'">&nbsp;'+F.bizTitle.value+'</td>';
	newRow = newRow +'<td><input type="hidden" name="'+newdivname+'[]" value="'+F.bizCntFirst.value+'">&nbsp;'+F.bizCntFirst.value+'</td>';
	newRow = newRow +'<td><input type="hidden" name="'+newdivname+'[]" value="'+F.bizCntLast.value+'">&nbsp;'+F.bizCntLast.value+'</td>';
	newRow = newRow +'<td><input type="hidden" name="'+newdivname+'[]" value="'+contact_ph+'">&nbsp;'+contact_ph+'</td>';
	newRow = newRow +'<td><input type="hidden" name="'+newdivname+'[]" value="'+mob_ph+'">&nbsp;'+mob_ph+'</td>';
	newRow = newRow +'<td><input type="hidden" name="'+newdivname+'[]" value="'+F.bizCntEmail.value+'">&nbsp;'+F.bizCntEmail.value+'</td>';
	newRow = newRow +'<td><a href="javascript://" onclick="removeBizCntrow(\''+newdivname+'\');"><img src="images/icon_delete.gif" border="0" width="15" height="15"></a></td></tr></tbody></table>';
	newdiv.innerHTML =newRow;
	addBizCnt.appendChild(newdiv);
	bizCnt_row_cnt.value = hobbyRow;
	hobbyRow++;
	F.bizTitle.value = "";
	F.bizCntFirst.value = "";
	F.bizCntLast.value = "";
	F.bizCntPhone1.value = "";
	F.bizCntEmail.value = "";
	F.biz_cnt_US_1.value = "";
	F.biz_cnt_US_2.value = "";
	F.biz_cnt_US_3.value = "";
	F.biz_cnt_US_1_mobile.value = "";
	F.biz_cnt_US_2_mobile.value = "";
	F.biz_cnt_US_3_mobile.value = "";
}
function activate_ind(p_id){
	sUrl = "manage_rolodex.cb.php?msg=activate&pid="+p_id;
	window.location = sUrl;
}
function deactivate_ind(p_id){
	sUrl ="manage_rolodex.cb.php?msg=activate&pid="+p_id;
	window.location = sUrl;
}
function bulletin(ob){
	if(ob.checked){
		document.getElementById('bullet_text').style.display = "block";
	} else {
		document.getElementById('bullet_text').style.display = "none";
	}
}
	function add_Hobby_Act_Row(divID,arrDiv){
		var other_hobby = document.getElementById(divID);
		var newrowno = other_hobby.childNodes.length;
		if(other_hobby.style.display == 'none'){
			other_hobby.style.display = 'block';
		}
		newrowno++;
		var newdivname = arrDiv + "Other_HobbyAct"+ newrowno;
		newdivname = newdivname.toUpperCase();
		chk_other = arrDiv + "_Other_"+ newrowno;
		chk_other = chk_other.toUpperCase();
		var newdiv = document.createElement(newdivname);
		var newRow = '<LABEL style="PADDING-RIGHT: 3px; DISPLAY: block" for=cbx>';
		newRow = newRow +'<INPUT type="checkbox" value="Other_'+newrowno+'" name="'+arrDiv+'[]" onClick="javascript:if(this.checked){document.getElementById(\'txt_'+chk_other+'\').disabled=false;} else {document.getElementById(\'txt_'+chk_other+'\').value=\'Other\';document.getElementById(\'txt_'+chk_other+'\').disabled=true;}">'; 
		newRow = newRow +'<input type="text" id="txt_'+chk_other+'" name="txt_'+chk_other+'" size="15"  maxlength="20" value="Other" disabled>';
		newRow = newRow +'</LABEL>';
		newdiv.innerHTML =	newRow;					
		other_hobby.appendChild(newdiv);
	}
function deleteRef(ref_det_id){
		document.frmProfile.choice.value = "deleteRef";
		document.frmProfile.action = "register.cb.php?choice=deleteRef&ref_det_id="+ref_det_id;
		document.frmProfile.submit();
	}
function valate_usr(id){
	if(id == "8"){
		popupLoginRegister();
		return false;
	} else {
	return true;
	}
}
function removing_from_rolodex(){
var F = document.frmSearch;
var iCount = 0,iLen;
if(!F.added_Usr_Ids) return false;
if(!F.added_Usr_Ids.length){
if(!F.added_Usr_Ids.checked){
alert("Please select records");
return false;
}
}else{
var get_ids = '';
for(var i = 0; i < F.added_Usr_Ids.length; i++){
if(F.added_Usr_Ids[i].checked){
get_ids += F.added_Usr_Ids[i].value + ',';
iCount++;
}
}
if(iCount == 0){
alert("Please select records");
return false;
}
sUrl = "multiple_remove_to_rolodex.php?array_ids="+get_ids;
var arrVal = procRequest(sUrl);
if(arrVal == "none"){
alert("Login or register to remove from My Clique");
return false;
}
if(arrVal == "unexist"){
alert("Contact is not available in My Clique");
}else
if(arrVal == "done"){
alert("Contact deleted successfully from My Clique");
}else {
alert("Unable to delete contact from My Clique");
}
}
}
function add_SP_Row(){
	max1++;
	var newdivname = "DIV_OTH_SP_" + max1;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table border=0 cellspacing=0 cellpadding=0 width=100%><tr bgcolor="#F6F6F6"><td class=indus width=20><img src=images/spacer.gif border=0></td><td class=indus width=20><INPUT type="checkbox" class="noborder" value="other-' + max1 + '" name="ind[]" onclick="checkfieldS(this,' + max1 + ')"></td><td class=indus width=150><input type="text" id="txtspc_' + max1 + '" name="txtspc_' + max1 + '" size=17 maxlength="18" value="Other" disabled></td>';
	newRow += '<td class=indus width=100>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=indus align=right>&nbsp;&nbsp;<select class="cmb_years_of_exp" name="experience_other_' + max1 + '"><option value="0">Years of Experience</option><option value="-1">limited</option><option value="+1">+1</option><option value="2-3">2-3</option><option value="3-5">3-5</option><option value="5-7">5-7</option><option value="7-10">7-10</option><option value="+10">+10</option><option value="+15">+15</option><option value="+20">+20</option></select></td>';
	newRow += '</tr><tr><td class=indus>&nbsp;</td><td class=indus colspan=4><div style="display:none;" id="disp_spc_' + max1 + '"><div id="div_exp_other-' + max1 + '"></div><img src=images/add_exp.gif border=0 onclick="add_Exp_Row(\'exp_other-' + max1 + '\');"></div></td></tr></table>';
	newdiv.innerHTML = newRow;
	var expertise_List = document.getElementById("sp_Other_disp");
	expertise_List.appendChild(newdiv);
}
function add_SP_Row_Tech(){
	max1++;
	var newdivname = "DIV_OTH_T_" + max1;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table border=0 cellspacing=0 cellpadding=0><tr bgcolor="#F6F6F6"><td class=indus width=20><img src=images/spacer.gif border=0></td><td class=indus width=20><INPUT type="checkbox" class="noborder" value="other-' + max1 + '" name="tech[]" onclick="checkfieldS(this,' + max1 + ')"></td><td class=indus width=150><input type="text" id="txtspc_' + max1 + '" name="txtspc_' + max1 + '" size=17 maxlength="18" value="Other" disabled></td>';
	newRow += '</tr><tr><td class=indus>&nbsp;</td><td class=indus colspan=4><div style="display:none;" id="disp_spc_' + max1 + '"><div id="div_tech2_other-' + max1 + '"></div><img src=images/add_exp.gif border=0 onclick="add_Exp_Row(\'tech2_other-' + max1 + '\');"></div></td></tr></table>';
	newdiv.innerHTML = newRow;
	var expertise_List = document.getElementById("T_Other_disp");
	expertise_List.appendChild(newdiv);
}
function add_SP_Row_Comp(){
	max1++;
	var newdivname = "DIV_OTH_C_" + max1;
	var newdiv = document.createElement(newdivname);
	var newRow = '<table border=0 cellspacing=0 cellpadding=0><tr bgcolor="#F6F6F6"><td class=indus width=20><img src=images/spacer.gif border=0></td><td class=indus width=20><INPUT type="checkbox" class="noborder" value="other-' + max1 + '" name="comp[]" onclick="checkfieldS(this,' + max1 + ')"></td><td class=indus width=150><input type="text" id="txtspc_' + max1 + '" name="txtspc_' + max1 + '" size=17 maxlength="18" value="Other" disabled></td>';
	newRow += '</tr><tr><td class=indus>&nbsp;</td><td class=indus colspan=4><div style="display:none;" id="disp_spc_' + max1 + '"><div id="div_comp2_other-' + max1 + '"></div><img src=images/add_exp.gif border=0 onclick="add_Exp_Row(\'comp2_other-' + max1 + '\');"></div></td></tr></table>';
	newdiv.innerHTML = newRow;
	var expertise_List = document.getElementById("C_Other_disp");
	expertise_List.appendChild(newdiv);
}
	function multisms(id){
		var iCount = 0;
		var F = document.frmBody;
		if(id == "8"){
			popupLoginRegister();
		} else {
			var get_ids = '';
			var message = 0;
			for(var i = 0; i < F.added_Usr_Ids.length; i++){
				if(F.added_Usr_Ids[i].checked){
					sUrl = "getData.php?mode=user_contact_limit&userid=" + F.added_Usr_Ids[i].value;
					var arrVal = procRequest(sUrl);
					if(arrVal == "1"){
						message = 1;
					} else if(arrVal == "2"){
						message = 2;
					} else if(arrVal == "3"){
						message = 3;
					} else {
						get_ids += F.added_Usr_Ids[i].value + ',';
					}
					iCount++;
				}
			}
			if(iCount == 0){
				alert("Please select records");
			} else if(message == 1){
				alert("Your monthly limit to contact members of this industry has been ended");
			} else if(message == 2){
				popupWorker();
				return false;
			} else if(message == 3){
				popupGuest();
				return false;
			} else {
				window.open('sendsmsM.php?userid=' + get_ids, 'smsbox', 'width=500,height=400,scrollbars=0');
			}
		}		
	}
	function multi_request_info(id){
		var iCount = 0;
		var F = document.frmBody;
		if(id == "8"){
			popupLoginRegister();
		} else {
			var get_ids = '';
			var message = 0;
			for(var i = 0; i < F.added_Usr_Ids.length; i++){
				if(F.added_Usr_Ids[i].checked){
					sUrl = "getData.php?mode=user_contact_limit&userid=" + F.added_Usr_Ids[i].value;
					var arrVal = procRequest(sUrl);
					if(arrVal == "1"){
						message = 1;
					} else if(arrVal == "2"){
						message = 2;
					} else if(arrVal == "3"){
						message = 3;
					} else {
						get_ids += F.added_Usr_Ids[i].value + ',';
					}
					iCount++;
				}
			}
			if(iCount == 0){
				alert("Please select records");
			} else if(message == 1){
				alert("Your monthly limit to contact members of this industry has been ended");
			} else if(message == 2){
				popupWorker();
				return false;
			} else if(message == 3){
				popupGuest();
				return false;
			} else {
				window.open('sendemailM.php?userid=' + get_ids, 'emailX', 'width=600,height=450,scrollbars=0');
			}
		}		
	}
function expand_biz(name){
	if(document.getElementById(name).style.display == "none"){
		document.getElementById(name).style.display = 'block';
	} else {
		document.getElementById(name).style.display = 'none';
	}
}