

//added------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!--//   LIMIT MULTIPLE SELECTED OPTIONS SCRIPT || 01-11-2006   \\;
var selectedOptions = []; // Written by: WillyDuitt@hotmail.com \\;
function countSelected(select,maxNumber){
   for(var i=0; i<select.options.length; i++){
     if(select.options[i].selected && !new RegExp(i,'g').test(selectedOptions.toString())){
        selectedOptions.push(i);
     }

     if(!select.options[i].selected && new RegExp(i,'g').test(selectedOptions.toString())){
      selectedOptions = selectedOptions.sort(function(a,b){return a-b});  
       for(var j=0; j<selectedOptions.length; j++){
         if(selectedOptions[j] == i){
            selectedOptions.splice(j,1);
         }
       }
     }

     if(selectedOptions.length > maxNumber){
      var throwAlert = true;
        select.options[i].selected = false;
        selectedOptions.pop();
     }  
   }            

     if(throwAlert == true){
        alert('You may only choose '+maxNumber+' options!!');
        document.body.focus();
     }
}
//-->

//========= Terms & con
function teerms(){
	newwindow=window.open('terms_register.php','name',"height=600,width=990,scrollbars=yes,top=0,left=0");
	if (window.focus) {newwindow.focus()}
	return false;
	
	//$(document).ready(function(){
		//tb_show("Terms and Conditions","terms_register.php?height=450&width=940&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	
}
function clientterms(){
	newwindow=window.open('clientnda.php','name',"height=600,width=990,scrollbars=yes,top=0,left=0");
	if (window.focus) {newwindow.focus()}
	return false;
	
	//$(document).ready(function(){
		//tb_show("Terms and Conditions","terms_register.php?height=450&width=940&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	
}
// === Terms and Condn for Starlancer === 
function StarlancerTerms(){
	newwindow=window.open('slterms_register.php','name',"height=600,width=990,scrollbars=yes,top=0,left=0");
	if (window.focus) {newwindow.focus()}
	return false;
		//tb_show("Terms and Conditions","slterms_register.php?height=650&width=1120&ptype=test&url=test","IMAGES/loadingAnimation.gif");
}
function summary(){
	newwindow=window.open('help_executivesummary.php','name',"height=315,width=650,scrollbars=0,top=0,left=0");
	if (window.focus) {newwindow.focus()}
	return false;
		//tb_show("Terms and Conditions","slterms_register.php?height=650&width=1120&ptype=test&url=test","IMAGES/loadingAnimation.gif");
}
function StarlancerTermsNDA(){
	newwindow=window.open('non_disclosureagreement.php','name',"height=600,width=990,scrollbars=yes,top=0,left=0");
	if (window.focus) {newwindow.focus()}
	return false;
		//tb_show("Terms and Conditions","slterms_register.php?height=650&width=1120&ptype=test&url=test","IMAGES/loadingAnimation.gif");
}
// ======= Client Request Details
function ProjectDetails(Proid){
	$(document).ready(function(){
		tb_show("Project Details","popup_projectdetails.php?proid="+Proid+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function NoticeDetails(Proid){
	$(document).ready(function(){
		tb_show("Notice Board Details","popup_noticedetails.php?proid="+Proid+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function NoticeDetails1(Proid){
	$(document).ready(function(){
		tb_show("Notice Board Details","popup_noticedetails1.php?proid="+Proid+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}
function academic(divID,divID2){
	var itemm = document.getElementById(divID);
	if (itemm) {
		itemm.className=(itemm.className=='unhidden')?'hidden':'unhidden';
	}
	var items = document.getElementById(divID2);
	if (items) {
		items.className=(items.className=='unhidden')?'hidden':'unhidden';
	}
}

//================= View Profile Image
function view_image(divID){
	var itemm = document.getElementById(divID);
	if (itemm) {
		itemm.className=(itemm.className=='unhidden')?'hidden':'unhidden';
	}
}

function hidemsg(){
	document.getElementById("viewmessage").innerHTML ="";	
}

//============= Reference Start
function referenceAdd(){
	$(document).ready(function(){
		tb_show("Send Mail To Reference","popup_referenceadd.php?height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function referenceEdit(acID){
	$(document).ready(function(){
		tb_show("Send Reminder Mail To Reference","popup_referenceedit.php?acid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function EngagementsClose(acID){
	$(document).ready(function(){
		tb_show("Engagement","popup_engagementsclose.php?engid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function referenceSend(acID){
	$(document).ready(function(){
		tb_show("Send Mail To Reference","popup_referencesend.php?acid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}
//============= Reference End

//============= Time Sheet Start
function timesheetAdd(){
	$(document).ready(function(){
		tb_show("Add Time Sheet","popup_timesheetadd.php?height=400&width=300&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function timesheetEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Time Sheet","popup_timesheetedit.php?acid="+acID+"&height=400&width=300&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Time Sheet End

//============= ToDo Start
function todoAdd(){
	$(document).ready(function(){
		tb_show("Add To Do","popup_todoadd.php?height=400&width=300&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function todoEdit(acID){
	$(document).ready(function(){
		tb_show("Edit To Do","popup_todoedit.php?acid="+acID+"&height=400&width=300&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= ToDo ENd

//============= Notice Board.php Start
function noticeAdd(){
	$(document).ready(function(){
		tb_show("Add Notice Board","popup_noticeboardadd.php?height=400&width=400&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Notice Board.php End

//============= Event Calendar Start
function eventAdd(){
	$(document).ready(function(){
		tb_show("Add Events","popup_eventadd.php?height=400&width=400&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function eventEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Events","popup_eventedit.php?acid="+acID+"&height=400&width=400&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Event Calendar ENd

//============= Academic Start
function academicAdd(){
	$(document).ready(function(){
		tb_show("Add Academic Qualification","popup_academicadd.php?height=400&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function academicEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Academic Qualification","popup_academicedit.php?acid="+acID+"&height=400&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Academic End

//============= Certification Start
function certificationAdd(){
	$(document).ready(function(){
		tb_show("Add Certification","popup_certificationadd.php?height=400&width=720&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function certificationEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Certification","popup_certificationedit.php?acid="+acID+"&height=400&width=720&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Certification End

//============= Academic Start
function expeAdd(){
	$(document).ready(function(){
		tb_show("Add Executive Summary","popup_expadd.php?height=500&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function expeEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Executive Summary","popup_expedit.php?acid="+acID+"&height=500&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

/********************************* Reservatio Pop Up *************************************/

function ClientReservationPopup(acID){
	$(document).ready(function(){
		tb_show("Reservation","popup_clientreservation.php?staid="+acID+"&height=400&width=400&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

/******************** AssignedInterview *******************************/
function AssignedInterview(acID){
	$(document).ready(function(){
		tb_show("Interview Status","popup_interviewconfirm.php?newid="+acID+"&height=200&width=500&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
/******************** End AssignedInterview **************************/

//========= Starlancer Cofirmation
function StarlancerConfirmation(acID){
	$(document).ready(function(){
		tb_show("Starlancer Confirmation","popup_slconfirmation.php?slcid="+acID+"&height=400&width=350&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
function DeclineComments(acID){
	$(document).ready(function(){
		tb_show("Reject Comments","popup_sldeclinecomments.php?dschid="+acID+"&height=300&width=350&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= Academic End

function experienceB(){
	var hours	= document.getElementById("hours").value;
	var resume		= document.getElementById("resume").value;
	var ok =2;
	
	if(hours !=''){
		if(hours.search("[^0-9.\]")>=0){
			document.getElementById("hours").className="redboder";
			document.getElementById("hourserror").innerHTML ="Enter Hours in numeric";	
			var ok =1;
		}
		else{
			document.getElementById("hours").className="defalutboder";
			document.getElementById("hourserror").innerHTML ="";	
		}
	}
	
	if(resume==''){
		document.getElementById("resume").className="redboder";
		document.getElementById("resumeerror").innerHTML ="Upload your Resume";	
		var ok =1;
	}
	else{
		document.getElementById("resume").className="defalutboder";
		document.getElementById("resumeerror").innerHTML ="";	
	}
	
	if(ok ==2){
		return true;
	}
	else{
		return false;
	}
}

//// newly addeed by krishna
//function countSelected(select,maxNumber){
//var selectedOptions = []; 
//   for(var i=0; i<select.options.length; i++){
//     if(select.options[i].selected && !new RegExp(i,'g').industry[](selectedOptions.toString())){
//        selectedOptions.push(i);
//     }
//
//     if(!select.options[i].selected && new RegExp(i,'g').industry[](selectedOptions.toString())){
//      selectedOptions = selectedOptions.sort(function(a,b){return a-b});  
//       for(var j=0; j<selectedOptions.length; j++){
//         if(selectedOptions[j] == i){
//            selectedOptions.splice(j,1);
//         }
//       }
//     }
//
//     if(selectedOptions.length > maxNumber){
//      var throwAlert = true;
//        select.options[i].selected = false;
//        selectedOptions.pop();
//     }  
//   }            
//
//     if(throwAlert == true){
//        alert('You may only choose '+maxNumber+' options!!');
//        document.body.focus();
//     }
//}
//
//
//
//
//
//
//// ended by krishna

function positioning(){
	//var expected	= document.getElementById("expected").value;
	var industry	= document.getElementById("industry").value;
	var expertise	= document.getElementById("competency[]").value;
	var location	= document.getElementById("location[]").value;
	var domain	    = document.getElementById("domain[]").value;
	
	var ok =2;
	//
//	if(expected==''){
//		document.getElementById("expected").className="redboder";
//		document.getElementById("errorexpected").innerHTML ="Enter expected";	
//		var ok =1;
//	}
//	else{
//		document.getElementById("expected").className="defalutboder";
//		document.getElementById("errorexpected").innerHTML ="";	
//	}

	if(industry==''){
		document.getElementById("industry").className="redboder";
		document.getElementById("errorindustry").innerHTML ="Select Industry";	
		var ok =1;
	}
	else{
		document.getElementById("industry").className="defalutboder";
		document.getElementById("errorindustry").innerHTML ="";	
	}
	
	if(domain==''){
		document.getElementById("domain[]").className="redboder";
		document.getElementById("errordomain").innerHTML ="Select domain";	      //  newly added by krish
		var ok =1;
	}
	else{
		document.getElementById("domain[]").className="defalutboder";
		document.getElementById("errordomain").innerHTML ="";	
	}
	if(expertise==''){
		document.getElementById("competency[]").className="redboder";
		document.getElementById("errorexpertise").innerHTML ="Select expertise";	
		var ok =1;
	}
	else{
		document.getElementById("competency[]").className="defalutboder";
		document.getElementById("errorexpertise").innerHTML ="";	
	}
	
	if(location==''){
		document.getElementById("location[]").className="redboder";
		document.getElementById("errorlocation").innerHTML ="Enter location";	
		var ok =1;
	}
	else{
		document.getElementById("location[]").className="defalutboder";
		document.getElementById("errorlocation").innerHTML ="";	
	}
	
	if(ok ==2){
		return true;
	}
	else{
		return false;
	}
}

function feedback_hide(){
	var itemm1 = document.getElementById("login_view");
	var itemm3 = document.getElementById("signup_view");
	
	
	if (itemm1) {
		itemm1.className=(itemm1.className=='footer_unhidden')?'footer_unhidden':'footer_unhidden';
	}
	if (itemm3) {
		itemm3.className=(itemm3.className=='footer_hidden')?'footer_hidden':'footer_hidden';
	}
}

function decline_hide(){
	var itemm1 = document.getElementById("login_view");
	var itemm3 = document.getElementById("signup_view");
	
	if (itemm1) {
		itemm1.className=(itemm1.className=='footer_hidden')?'footer_hidden':'footer_hidden';
	}
	if (itemm3) {
		itemm3.className=(itemm3.className=='footer_unhidden')?'footer_unhidden':'footer_unhidden';
	}
}
/*******************************  OPPORTUNITY  *********************************************************/


//============ Client Members Add
function membersAdd(){
	$(document).ready(function(){
		tb_show("Add Members","popup_memberadd.php?height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function membersEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Members ","popup_memberedit.php?clientid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
//============= End Client Members



function opportunityAdd(){
	$(document).ready(function(){
		tb_show("Add Opportunity","popup_opportunityadd.php?height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
function opportunityEdit(acID){
	$(document).ready(function(){
		tb_show("Edit Opportunity ","popup_opportunityedit.php?oppid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
function OpportunityView(acID){
	$(document).ready(function(){
		tb_show("View Opportunity","popup_opportunityview.php?oppid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}




/*************************************************  Reference Activation Validation ***************************************************/
function ShortNote(){
	
	var ok =2;	
	
	if(document.getElementById("dnote").value == ""){
		document.getElementById("dnote").className="redboder";
		var ok = 1;
	}
	else{
		document.getElementById("dnote").className="defalutboder";
	}
	
	if(ok == 2){
		return true;
	}
	else{
		document.getElementById("newid123").innerHTML="Please fill up the required information";
		return false;
	}
}




/************************* Feedback ***********************************/
function FeedbackView(acID){
	$(document).ready(function(){
		tb_show("Client Feedback Details","popup_slfeedback.php?fid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function AddtionalFeedbackDetails(acID){
	$(document).ready(function(){
		tb_show("Additional Feedback","popup_additionalfeedback.php?afid="+acID+"&height=400&width=310&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function PostedFeedbackDetails(acID){
	$(document).ready(function(){
		tb_show("Starlacer Feedback Details","popup_postedfeedback.php?starid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}


/******************************************** Client Requests Details **********************************************/

function AddRequests(){
	$(document).ready(function(){
		tb_show("Add Requests","popup_clientrequest_add.php?height=400&width=700&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function EditRequests(acID){
	$(document).ready(function(){
		tb_show("Edit Requests","popup_clientrequest_edit.php?reqid="+acID+"&height=400&width=700&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

/******************************************** END ********************************************/

/************************************** Starlancer Search results ********************************************/

function ViewShortProfile(acID){
	$(document).ready(function(){
		tb_show("Experience","popup_stashortprofile.php?id="+acID+"&height=450&width=700&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function ViewShortCer(acID){
	$(document).ready(function(){
		tb_show("Certification","popup_star_cer.php?id="+acID+"&height=450&width=700&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}
function ViewShortAcd(acID){
	$(document).ready(function(){
		tb_show("Academic","popup_star_acd.php?id="+acID+"&height=450&width=700&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

function StaScheduleInterview(acID){
	$(document).ready(function(){
		tb_show("Apply Interview","popup_scheduleinterview.php?starid="+acID+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function ApplyInterview(acID,pid){
	$(document).ready(function(){
		tb_show("Apply Interview","popup_applyinterview.php?starid="+acID+"&proid="+pid+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function requestinfo(acID){
	$(document).ready(function(){
		tb_show("Send Request","popup_requestinfo.php?starid="+acID+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}


function StaApplyInterview(acID){
	$(document).ready(function(){
		tb_show("Apply Interview","popup_starlancerapply.php?projectid="+acID+"&height=450&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}


/****************************************** END **************************************************************************************************/


// ============= Confirm Comments

function ConfirmComments(acID){
	$(document).ready(function(){
		tb_show("Comments","popup_slconfirmcomments.php?schid="+acID+"&height=300&width=350&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});

}

/*POPUP*/
function myPopup(url,width,height) {
	window.open(url, "myWindow","height="+height+", width = "+width+", resizable=0,status=0,left=100,top=50,toolbar=0" )
}





/*************************************** FeedBack Validation **************************************************************/

function FeedbackValidation(){
	
	var ok =2;	
	
	if(document.getElementById("long").value == ""){
		document.getElementById("long").className="redboder";
		var ok = 1;
	}
	else{
		document.getElementById("long").className="defalutboder";
	}
	
	if(document.getElementById("demonstrates1").checked == false && document.getElementById("demonstrates2").checked == false && document.getElementById("demonstrates3").checked == false && document.getElementById("demonstrates4").checked == false &&  document.getElementById("demonstrates5").checked == false && document.getElementById("demonstrates6").checked == false){
			document.getElementById("demonstrates_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("demonstrates_table").className="";
		}
		
		if(document.getElementById("committed1").checked == false && document.getElementById("committed2").checked == false && document.getElementById("committed3").checked == false && document.getElementById("committed4").checked == false &&  document.getElementById("committed5").checked == false && document.getElementById("committed6").checked == false){
			document.getElementById("committed_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("committed_table").className="";
		}
		
		if(document.getElementById("continuously1").checked == false && document.getElementById("continuously2").checked == false && document.getElementById("continuously3").checked == false && document.getElementById("continuously4").checked == false &&  document.getElementById("continuously5").checked == false && document.getElementById("continuously6").checked == false){
			document.getElementById("continuously_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("continuously_table").className="";
		}
		
		if(document.getElementById("profile1").checked == false && document.getElementById("profile2").checked == false && document.getElementById("profile3").checked == false && document.getElementById("profile4").checked == false &&  document.getElementById("profile5").checked == false && document.getElementById("profile6").checked == false){
			document.getElementById("profile_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("profile_table").className="";
		}
		
		if(document.getElementById("innovative1").checked == false && document.getElementById("innovative2").checked == false && document.getElementById("innovative3").checked == false && document.getElementById("innovative4").checked == false &&  document.getElementById("innovative5").checked == false && document.getElementById("innovative6").checked == false){
			document.getElementById("innovative_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("innovative_table").className="";
		}
	
	if(document.getElementById("positively1").checked == false && document.getElementById("positively2").checked == false && document.getElementById("positively3").checked == false && document.getElementById("positively4").checked == false &&  document.getElementById("positively5").checked == false && document.getElementById("positively6").checked == false){
			document.getElementById("positively_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("positively_table").className="";
		}
	
	if(document.getElementById("teamplayer1").checked == false && document.getElementById("teamplayer2").checked == false && document.getElementById("teamplayer3").checked == false && document.getElementById("teamplayer4").checked == false &&  document.getElementById("teamplayer5").checked == false && document.getElementById("teamplayer6").checked == false){
			document.getElementById("teamplayer_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("teamplayer_table").className="";
		}
		
		if(document.getElementById("responsibility1").checked == false && document.getElementById("responsibility2").checked == false && document.getElementById("responsibility3").checked == false && document.getElementById("responsibility4").checked == false &&  document.getElementById("responsibility5").checked == false && document.getElementById("responsibility6").checked == false){
			document.getElementById("responsibility_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("responsibility_table").className="";
		}
		
		if(document.getElementById("encourages1").checked == false && document.getElementById("encourages2").checked == false && document.getElementById("encourages3").checked == false && document.getElementById("encourages4").checked == false &&  document.getElementById("encourages5").checked == false && document.getElementById("encourages6").checked == false){
			document.getElementById("encourages_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("encourages_table").className="";
		}
		
		if(document.getElementById("communication1").checked == false && document.getElementById("communication2").checked == false && document.getElementById("communication3").checked == false && document.getElementById("communication4").checked == false &&  document.getElementById("communication5").checked == false && document.getElementById("communication6").checked == false){
			document.getElementById("communication_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("communication_table").className="";
		}
		
		if(document.getElementById("integrity1").checked == false && document.getElementById("integrity2").checked == false && document.getElementById("integrity3").checked == false && document.getElementById("integrity4").checked == false &&  document.getElementById("integrity5").checked == false && document.getElementById("integrity6").checked == false){
			document.getElementById("integrity_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("integrity_table").className="";
		}
		
		if(document.getElementById("experienced1").checked == false && document.getElementById("experienced2").checked == false && document.getElementById("experienced3").checked == false && document.getElementById("experienced4").checked == false &&  document.getElementById("experienced5").checked == false && document.getElementById("experienced6").checked == false){
			document.getElementById("experienced_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("experienced_table").className="";
		}
		
		if(document.getElementById("work1").checked == false && document.getElementById("work2").checked == false && document.getElementById("work3").checked == false && document.getElementById("work4").checked == false &&  document.getElementById("work5").checked == false && document.getElementById("work6").checked == false){
			document.getElementById("work_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("work_table").className="";
		}
		
		if(document.getElementById("conflicts1").checked == false && document.getElementById("conflicts2").checked == false && document.getElementById("conflicts3").checked == false && document.getElementById("conflicts4").checked == false &&  document.getElementById("conflicts5").checked == false && document.getElementById("conflicts6").checked == false){
			document.getElementById("conflicts_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("conflicts_table").className="";
		}
		
		if(document.getElementById("strongleadership1").checked == false && document.getElementById("strongleadership2").checked == false && document.getElementById("strongleadership3").checked == false && document.getElementById("strongleadership4").checked == false &&  document.getElementById("strongleadership5").checked == false && document.getElementById("strongleadership6").checked == false){
			
			document.getElementById("strongleadership_table").className="redboder";
			var ok=1;
		}
		else{
			document.getElementById("strongleadership_table").className="";
		}
		
		if(document.getElementById("note").value == ""){
		document.getElementById("note").className="redboder";
		var ok = 1;
		}
		else{
			document.getElementById("note").className="defalutboder";
		}
	
	if(ok == 2){
		return true;
	}
	else{
		document.getElementById("newid").innerHTML="Please fill up the required information";
		return false;
	}
	
}


function OnChangeProject(){
	document.forms["viewproject"].submit();
}

// Enter Only Numbers
function isNumberKey(evt){
	 var charCode = (evt.which) ? evt.which : evt.keyCode
	 if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46 )
		return false;
	 return true;
}
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
	return (limitCount.value);
}


//  added by krishna

	



// ======== StarlacerDetails
function StarlacerDetails(acID){
	$(document).ready(function(){
		tb_show("View Starlancer Details","popup_slview.php?staid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}

function viewDes(viewID){
	var divCollection = document.getElementsByTagName("div");
	
	for (var i=0; i<divCollection.length; i++) {
		if(divCollection[i].getAttribute("class") == "unhidden") {
			
		
			findID = divCollection[i].getAttribute("id");
			var itemall = document.getElementById(findID);
						
			if (itemall) {
				itemall.className=(itemall.className=='hidden')?'hidden':'hidden';
			}
		}
		if(divCollection[i].getAttribute("className") == "unhidden") {
			findID = divCollection[i].getAttribute("id");
			var itemall = document.getElementById(findID);
			if (itemall) {
				itemall.className=(itemall.className=='hidden')?'hidden':'hidden';
			}
		}
	}
	var itemm 	= document.getElementById(viewID);
	
	if (itemm) {
		itemm.className=(itemm.className=='unhidden')?'unhidden':'unhidden';
	}
}


function StarlacerProfileView(acID){
	$(document).ready(function(){
		tb_show("Starlancer Details","popup_sl_profileview.php?staid="+acID+"&height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}
//=========
/*$(function() {

    $(".countries")

        .mouseover(function(){
            $(this)
                .data("origWidth", $(this).css("width"))
                .css("width", "auto");
        })

        .mouseout(function(){
            $(this).css("width", $(this).data("origWidth"));
        });

});*/

// Start of the 'setSelectOptions()' function
function setSelectOptions(the_form, the_select, do_check){
    var selectObject = document.forms[the_form].elements[the_select];
    var selectCount  = selectObject.length;

    for (var i = 0; i < selectCount; i++) {
        selectObject.options[i].selected = do_check;
    } // end for

    return true;
} 
// End of the 'setSelectOptions()' function

// Change Iframe in Home Start
function testView1(){
	var itemm = document.getElementById('testimo_1');
	itemm.className=(itemm.className=='h_user_text')?'h_user_text':'h_user_text';
	
	var itemm2 = document.getElementById('testimo_2');
	itemm2.className=(itemm2.className=='u_user_text')?'u_user_text':'u_user_text';	
	
	var itemm3 = document.getElementById('testimo_3');
	itemm3.className=(itemm3.className=='h_user_text')?'h_user_text':'h_user_text';	
	
	setTimeout("testView2()",8000);
}

function testView2(){
	var itemm = document.getElementById('testimo_1');
	itemm.className=(itemm.className=='h_user_text')?'h_user_text':'h_user_text';
	
	var itemm2 = document.getElementById('testimo_2');
	itemm2.className=(itemm2.className=='h_user_text')?'h_user_text':'h_user_text';	
	
	var itemm3 = document.getElementById('testimo_3');
	itemm3.className=(itemm3.className=='u_user_text')?'u_user_text':'u_user_text';	
	
	setTimeout("testView3()",8000);
}

function testView3(){
	var itemm = document.getElementById('testimo_1');
	itemm.className=(itemm.className=='u_user_text')?'u_user_text':'u_user_text';
	
	var itemm2 = document.getElementById('testimo_2');
	itemm2.className=(itemm2.className=='h_user_text')?'h_user_text':'h_user_text';	
	
	var itemm3 = document.getElementById('testimo_3');
	itemm3.className=(itemm3.className=='h_user_text')?'h_user_text':'h_user_text';	
	
	setTimeout("testView1()",8000);
}
// Change Iframe in Home End

//=== Slide home page Start
function mouseChange(viewID){
	var itemm = document.getElementById(viewID);
	itemm.className='slide_view_table_over';
}

function mouseOut(viewID){
	var itemm = document.getElementById(viewID);
	itemm.className='slide_view_table';
}
function submitformengage2(){
    document.forms["viewtype2"].submit();
}
//=== Slide home page End

function graphIndustry(){
	$(document).ready(function(){
		tb_show("Industry","popup_graphIndustry.php?height=430&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});	
}

function graphCompetency(){
	$(document).ready(function(){
		tb_show("Competency","popup_graphCompetency.php?height=430&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});	
}

function graphDomain(){
	$(document).ready(function(){
		tb_show("Function","popup_graphDomain.php?height=430&width=450&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});	
}

<!--Profile Hidden-->
/*================== Footer View =================================*/
function footer_hide(){
	var itemm1 = document.getElementById("tr_fv1");
	var itemm2 = document.getElementById("tr_fv2");
	var itemm3 = document.getElementById("tr_img1");
	var itemm4 = document.getElementById("tr_img2");
	
	if (itemm1) {
		itemm1.className=(itemm1.className=='footer_unhidden')?'footer_hidden':'footer_unhidden';
	}
	if (itemm2) {
		itemm2.className=(itemm2.className=='footer_unhidden')?'footer_hidden':'footer_unhidden';
	}
	if (itemm3) {
		itemm3.className=(itemm3.className=='footer_hidden')?'footer_unhidden':'footer_hidden';
	}
	if (itemm4) {
		itemm4.className=(itemm4.className=='footer_unhidden')?'footer_hidden':'footer_unhidden';
	}
	document.cookie="bgcolor=hiddens";
}

function footer_unhide(){
	var itemm1 = document.getElementById("tr_fv1");
	var itemm2 = document.getElementById("tr_fv2");
	var itemm3 = document.getElementById("tr_img1");
	var itemm4 = document.getElementById("tr_img2");
	
	if (itemm1) {
		itemm1.className=(itemm1.className=='footer_hidden')?'footer_unhidden':'footer_hidden';
	}
	if (itemm2) {
		itemm2.className=(itemm2.className=='footer_hidden')?'footer_unhidden':'footer_hidden';
	}
	if (itemm3) {
		itemm3.className=(itemm3.className=='footer_unhidden')?'footer_hidden':'footer_unhidden';
	}
	if (itemm4) {
		itemm4.className=(itemm4.className=='footer_hidden')?'footer_unhidden':'footer_hidden';
	}
	document.cookie="bgcolor=viewss";
}

//Get cookie routine by Shelley Powers
function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		// if cookie exists
		if (offset != -1) {
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}
function profile_hide(divid1,divid2,divid3){
	var itemm1 = document.getElementById(divid1);
	var itemm2 = document.getElementById(divid2);
	var itemm3 = document.getElementById(divid3);

	itemm1.className='hidden';
	itemm2.className='hidden';
	itemm3.className='unhidden';
	
	document.cookie=divid1+"=hiddens";
}

function profile_unhide(divid1,divid2,divid3){
	var itemm1 = document.getElementById(divid1);
	var itemm2 = document.getElementById(divid2);
	var itemm3 = document.getElementById(divid3);

	itemm1.className='unhidden';
	itemm2.className='unhidden';
	itemm3.className='hidden';
	
	document.cookie=divid1+"=views";
}

//====== Restricting reference atleast one entry in each
function restrictReference(){
	$(document).ready(function(){
		tb_show("Reference","popup_restrict.php?height=400&width=600&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}
//==== Invite Friends
function invitefriends(){
	$(document).ready(function(){
		tb_show("Refer a friend","popup_invitefriends.php?height=400&width=500&ptype=test&url=test","IMAGES/loadingAnimation.gif");
	});
}
