function createXMLHttpRequest()
{
    var ua;
    

    if(window.XMLHttpRequest)
    {
        try
        {
            ua = new XMLHttpRequest();
        }
        catch(e)
        {
            ua = false;
        }
    }
    else if(window.ActiveXObject)
    {
        try
        {
            ua = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e)
        {
            ua = false;
        }
    }
    return ua;
}


var req = createXMLHttpRequest();

//---------------------------------------------------AJAX-----------------------------------------------------//


//------------------------------------------------------------------------------------------------------------//

//##################################################################################################################//
//----------------------------------------java script-------------------------------------------------------//


function Check()
	{
		
	   if (document.forum_admin_page.date_from.value== "" )
			{
				alert ( "You have not entered Date From" );
				document.forum_admin_page.date_from.focus();
				document.forum_admin_page.date_from.style.backgroundColor = "#FFFFC6"  
				return (false);
			}
		
		
		if ( document.forum_admin_page.date_to.value == "" )
			{
				alert ( "You have not entered Date To" );
				document.forum_admin_page.date_to.focus();
				document.forum_admin_page.date_to.style.backgroundColor = "#FFFFC6"  
				return (false);
			}
		
		
		if ( document.forum_admin_page.index.value == "" )
			{
				alert ( "You have not Selected Index" );
				document.forum_admin_page.index.focus();
				document.forum_admin_page.index.style.backgroundColor = "#FFFFC6"  
				return (false);
			}
		
		
		if ( document.forum_admin_page.role.value == "" )
			{
				alert ( "You have not Selected Role" );
				document.forum_admin_page.role.focus();
				document.forum_admin_page.role.style.backgroundColor = "#FFFFC6"  
				return (false);
			}
		
		
		return (true);
	}




//----------------------------------------user_reg_form------------------------------------------------------//


function dis_user_reg()
{
	flag="";
	if(document.user_reg_form1.c1_reg.checked)
	{
	   flag=true;
	   document.user_reg_form1.p_address1.style.backgroundColor = "#F5EFEB"
	   document.user_reg_form1.p_address2.style.backgroundColor = "#F5EFEB"
	   document.user_reg_form1.p_city.style.backgroundColor     = "#F5EFEB"
	   document.user_reg_form1.p_district.style.backgroundColor = "#F5EFEB"
	   document.user_reg_form1.p_state.style.backgroundColor    = "#F5EFEB"
	   document.user_reg_form1.p_country.style.backgroundColor  = "#F5EFEB"
	   document.user_reg_form1.p_zipcode.style.backgroundColor  = "#F5EFEB"
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
	   document.user_reg_form1.other_p_country.style.backgroundColor  = "#F5EFEB"   
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
	   document.user_reg_form1.other_p_state.style.backgroundColor  = "#F5EFEB"  
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
	   document.user_reg_form1.other_p_city.style.backgroundColor  = "#F5EFEB"
	   }
	 }
	else
	{
	   flag=false;
	   
	   document.user_reg_form1.p_address1.style.backgroundColor = "#FFFFFF"
	   document.user_reg_form1.p_address2.style.backgroundColor = "#FFFFFF"
	   document.user_reg_form1.p_city.style.backgroundColor     = "#FFFFFF"
	   document.user_reg_form1.p_district.style.backgroundColor = "#FFFFFF"
	   document.user_reg_form1.p_state.style.backgroundColor    = "#FFFFFF"
	   document.user_reg_form1.p_country.style.backgroundColor  = "#FFFFFF"
	   document.user_reg_form1.p_zipcode.style.backgroundColor  = "#FFFFFF" 
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
	   document.user_reg_form1.other_p_country.style.backgroundColor  = "#FFFFFF"   
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
	   document.user_reg_form1.other_p_state.style.backgroundColor  = "#FFFFFF" 
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
	   document.user_reg_form1.other_p_city.style.backgroundColor  = "#FFFFFF"  
	   }
	}
	with(document.user_reg_form1)
	{
		p_address1.disabled=flag;
		p_address2.disabled=flag;
		p_city.disabled=flag;
		p_district.disabled=flag;
		p_state.disabled=flag;
		p_country.disabled=flag;
		p_zipcode.disabled=flag;
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
		other_p_country.disabled=flag;
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
		other_p_state.disabled=flag;
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
		other_p_city.disabled=flag;
	   }
	}
	
}

function fun1()
{
	user_reg_form1.no_child.disabled=true;
   document.user_reg_form1.no_child.style.backgroundColor = "#F5EFEB"
}

function fun2()
{
	user_reg_form1.no_child.disabled=false;
   document.user_reg_form1.no_child.style.backgroundColor = "#FFFFFF"
}





function Check_reg()
{
   if (document.user_reg_form1.first_name.value== "" )
    {
		alert ( "You have not entered your first name" );
		document.user_reg_form1.first_name.focus();
		document.user_reg_form1.first_name.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
	
	if ( document.user_reg_form1.last_name.value == "" )
    {
        alert ( "You have not entered your last name" );
		document.user_reg_form1.last_name.focus();
	   	document.user_reg_form1.last_name.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.email.value == "" )
    {
        alert ( "You have not entered your email ID" );
		document.user_reg_form1.email.focus();
	   	document.user_reg_form1.email.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.password.value == "" )
    {
        alert ( "You have not entered your password" );
		document.user_reg_form1.password.focus();
	   	document.user_reg_form1.password.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.re_password.value == "" )
    {
        alert ( "You have not entered your repassword" );
		document.user_reg_form1.re_password.focus();
	   	document.user_reg_form1.re_password.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.re_password.value != document.user_reg_form1.password.value )
    {
        alert ( "You repassword value is not same as password value" );
		document.user_reg_form1.re_password.focus();
	   	document.user_reg_form1.password.style.backgroundColor = "#FFFFC6"  
	   	document.user_reg_form1.re_password.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.dob1.value == "" )
    {
        alert ( "You have not entered your date of birth" );
		document.user_reg_form1.dob1.focus();
	   	document.user_reg_form1.dob1.style.backgroundColor = "#FFFFC6"  
        return (false);
    }

	if ( document.user_reg_form1.corr_address1.value == "" )
    {
        alert ( "You have not entered your  Correspondence Address Line1" );
		document.user_reg_form1.corr_address1.focus();
	   	document.user_reg_form1.corr_address1.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	
	
	if ( document.user_reg_form1.corr_country.value == "" )
    {
        alert ( "You have not Selected your correspondence country" );
		document.user_reg_form1.corr_country.focus();
	   	document.user_reg_form1.corr_country.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_country.value == "C_Other" )
    {
		if(document.user_reg_form1.other_country.value == "")
		{
        alert ( "Please entered your correspondence country" );
		document.user_reg_form1.other_country.focus();
	   	document.user_reg_form1.other_country.style.backgroundColor = "#FFFFC6"  
        return (false);
		
		}
    }
	
	if ( document.user_reg_form1.corr_state.value == "" )
    {
        alert ( "You have not Selected your correspondence State" );
		document.user_reg_form1.corr_state.focus();
	   	document.user_reg_form1.corr_state.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_state.value == "Other" )
    {
		if(document.user_reg_form1.other_state.value == "")
		{
        alert ( "Please enter your correspondence State" );
		document.user_reg_form1.other_state.focus();
	   	document.user_reg_form1.other_state.style.backgroundColor = "#FFFFC6"  
        return (false);
		}
    }

   
	if ( document.user_reg_form1.corr_city_town.value == "" )
    {
        alert ( "You have not Selected your correspondence city town" );
		document.user_reg_form1.corr_city_town.focus();
	   	document.user_reg_form1.corr_city_town.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_city_town.value == "Other" )
    {
		if(document.user_reg_form1.other_city.value == "")
		{
        alert ( "Please enter your correspondence city town" );
		document.user_reg_form1.other_city.focus();
	   	document.user_reg_form1.other_city.style.backgroundColor = "#FFFFC6"  
        return (false);
		}
    }



if (document.user_reg_form1.p_address1.disabled==false)
	{
		if ( document.user_reg_form1.p_address1.value == "" )
    	{
        	alert ( "You have not entered your permanent Address Line1." );
			document.user_reg_form1.p_address1.focus();
	   		document.user_reg_form1.p_address1.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}
	
	
	if (document.user_reg_form1.p_country.disabled==false)
	{
		if ( document.user_reg_form1.p_country.value == "" )
    	{
        	alert ( "You have not Selected your permanent country" );
			document.user_reg_form1.p_country.focus();
	   		document.user_reg_form1.p_country.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}
	
	if ( document.user_reg_form1.p_country.value == "C_P_Other" )
    {
		if ((document.user_reg_form1.other_p_country.disabled==false)&&(document.user_reg_form1.p_country.disabled==false))
		{
			if( document.user_reg_form1.other_p_country.value == "" )
			{
        	alert ( "Please entered your permanent country" );
			document.user_reg_form1.other_p_country.focus();
	   		document.user_reg_form1.other_p_country.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}
	
	if (document.user_reg_form1.p_state.disabled==false)
	{
		if ( document.user_reg_form1.p_state.value == "" )
    	{
        	alert ( "You have not Selected your permanent State" );
			document.user_reg_form1.p_state.focus();
	   		document.user_reg_form1.p_state.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}
	
	if (document.user_reg_form1.p_state.value == "Other")
	{
		if (document.user_reg_form1.other_p_state.disabled==false)
		{
			if ( document.user_reg_form1.other_p_state.value == "" )
    		{
        	alert ( "Please entered your permanent State" );
			document.user_reg_form1.other_p_state.focus();
	   		document.user_reg_form1.other_p_state.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}
	
	
	if (document.user_reg_form1.p_city.disabled==false)
	{
		if ( document.user_reg_form1.p_city.value == "" )
    	{
        	alert ( "You have not Selected your permanent city town" );
			document.user_reg_form1.p_city.focus();
	   		document.user_reg_form1.p_city.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}

	if ( document.user_reg_form1.p_city.value == "Other" )
	{
		if (document.user_reg_form1.other_p_city.disabled==false)
    	{
			if ( document.user_reg_form1.other_p_city.value == "" )
    		{
        	alert ( "Please entered your permanent city town" );
			document.user_reg_form1.other_p_city.focus();
	   		document.user_reg_form1.other_p_city.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}




	if( document.user_reg_form1.res_tel_no.value == "")
		{
			if( document.user_reg_form1.off_tel_no.value == "")
				{
					if( document.user_reg_form1.mobile_no.value == "")
						{	
							alert ( "Please Enter Any one Contact Number (Either Res-Telephone/Off-Telephone/Mobile)" );
							document.user_reg_form1.mobile_no.focus();
							document.user_reg_form1.res_tel_no.style.backgroundColor = "#FFFFC6" 
							document.user_reg_form1.off_tel_no.style.backgroundColor = "#FFFFC6" 
							document.user_reg_form1.mobile_no.style.backgroundColor = "#FFFFC6" 
							return (false);
						}
				}

		
		}



	
		if ( document.user_reg_form1.lcs_source.value == "" )
    	{
        	alert ( "You have not Selected LCS Source" );
			document.user_reg_form1.lcs_source.focus();
	   		document.user_reg_form1.lcs_source.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
		
		
		if ( document.user_reg_form1.source_name.value == "" )
    	{
        	alert ( "You have not entered Source Name" );
			document.user_reg_form1.source_name.focus();
	   		document.user_reg_form1.source_name.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
		
		if ( document.user_reg_form1.resume_title.value == "" )
    	{
        	alert ( "You have not entered Resume Tile" );
			document.user_reg_form1.resume_title.focus();
	   		document.user_reg_form1.resume_title.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	
	
    return (true);
}

//---------------------email_id_validation---------------------------------------//

 function validate_email_id()
   {
    if (! isValidEmail(document.forms[0].email.value)) {
        alert("Please enter a valid email address");
		document.user_reg_form1.email.focus();
	   	document.user_reg_form1.email.style.backgroundColor = "#FFFFC6"  
        return false;
    }
    return true;
  }


 function forum_email_id()
   {
    if (! isValidEmail(document.forms[0].user_name.value)) {
        alert("Please enter a valid email address");
		document.forum_user_reg.user_name.focus();
	   	document.forum_user_reg.user_name.style.backgroundColor = "#FFFFC6"  
        return false;
    }
    return true;
  }





function isValidEmail(email, required) {
    if (required==undefined) {   // if not specified, assume it's required
        required=true;
    }
    if (email==null) {
        if (required) {
            return false;
        }
        return true;
    }
    if (email.length==0) {  
        if (required) {
            return false;
        }
        return true;
    }
    if (! allValidChars(email)) {  // check to make sure all characters are valid
        return false;
    }
    if (email.indexOf("@") < 1) { //  must contain @, and it must not be the first character
        return false;
    } else if (email.lastIndexOf(".") <= email.indexOf("@")) {  // last dot must be after the @
        return false;
    } else if (email.indexOf("@") == email.length) {  // @ must not be the last character
        return false;
    } else if (email.indexOf("..") >=0) { // two periods in a row is not valid
	return false;
    } else if (email.indexOf(".") == email.length) {  // . must not be the last character
	return false;
    }
    return true;
}

function allValidChars(email) {
  var parsed = true;
  var validchars = "abcdefghijklmnopqrstuvwxyz0123456789@.-_";
  for (var i=0; i < email.length; i++) {
    var letter = email.charAt(i).toLowerCase();
    if (validchars.indexOf(letter) != -1)
      continue;
    parsed = false;
    break;
  }
  return parsed;
}
//---------------------------------------------------------------------------------//

//---------------------check of numeric value--------------------------------------//
function maskKeyPress(objEvent) 
     {
       var iKeyCode;       
       iKeyCode = objEvent.keyCode;               

       // only allow numbers and the minus keys to be entered
       if (iKeyCode>=45 && iKeyCode<=57) {
          return true;

       }
       else
          return false;
     }

     function finalCheck()
     {
                // This final check occurs when then leave the textbox, it ensures that it is an integer
     if (isNaN(parseInt(window.event.srcElement.value))) {
          window.event.srcElement.value = "";

        } else {
          window.event.srcElement.value = parseInt(window.event.srcElement.value);
        }
     }
//--------------------------------------------------------------------------------//

//---------------------------------------------end_of_user_reg_form-----------------------------------------//
//-------------------------------------------user_profile--------------------------------------------------//

function dis()
{
	flag="";
	if(document.user_profile1.exp_check.checked)
	{
	   flag=true;
	 
	   document.user_profile1.c_org.style.backgroundColor = "#F5EFEB"
	   document.user_profile1.current_industry.style.backgroundColor    = "#F5EFEB"
	   document.user_profile1.c_functional_skill.style.backgroundColor = "#F5EFEB"
	   document.user_profile1.c_rev_skill.style.backgroundColor    = "#F5EFEB"
	   document.user_profile1.current_location.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.exp_year.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.exp_month.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.sal_lakhs.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.sal_thousand.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.c_pos.style.backgroundColor  = "#F5EFEB"
	   document.user_profile1.c_role.style.backgroundColor = "#F5EFEB"
	   document.user_profile1.c_designation.style.backgroundColor = "#F5EFEB"
	   
	 }
	else
	{
	   flag=false;
	   
	  
	 
	   document.user_profile1.c_org.style.backgroundColor = "#FFFFFF"
	   document.user_profile1.current_industry.style.backgroundColor    = "#FFFFFF"
	   document.user_profile1.c_functional_skill.style.backgroundColor = "#FFFFFF"
	   document.user_profile1.c_rev_skill.style.backgroundColor    = "#FFFFFF"
	   document.user_profile1.current_location.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.exp_year.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.exp_month.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.sal_lakhs.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.sal_thousand.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.c_pos.style.backgroundColor  = "#FFFFFF"
	   document.user_profile1.c_role.style.backgroundColor = "#FFFFFF"
	   document.user_profile1.c_designation.style.backgroundColor = "#FFFFFF"  
	}
	with(document.user_profile1)
	{
		//catagory.disabled=flag;
		c_org.disabled=flag;
		current_industry.disabled=flag;
		c_functional_skill.disabled=flag;
		c_rev_skill.disabled=flag;
		current_location.disabled=flag;
		exp_year.disabled=flag;
		
		exp_month.disabled=flag;
		sal_lakhs.disabled=flag;
		sal_thousand.disabled=flag;
		c_pos.disabled=flag;
		
		
		c_role.disabled=flag;
		c_designation.disabled=flag;
		
	}
//-------------------------------------------------------------------------------//
	
}
//-------------------------------------------------------------------------------//
//------------------------profile_Check------------------------------------------//
function profile_Check( )
	{
		  
		if (document.user_profile1.hsc.value == "" )
          {
        	 mesg ="Please select your 10th Course."
			 alert(mesg);
			 document.user_profile1.hsc.focus();
	   		 document.user_profile1.hsc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }

		
		if (document.user_profile1.hsc_per.value == "" )
          {
        	 mesg ="Please fill your 10th Percentage."
			 alert(mesg);
			 document.user_profile1.hsc_per.focus();
	   		 document.user_profile1.hsc_per.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }
		
		
		
		if (document.user_profile1.inst_hsc.value == "" )
          {
        	 mesg ="Please Fill your 10th Passing Year."
			 alert(mesg);
			 document.user_profile1.inst_hsc.focus();
	   		 document.user_profile1.inst_hsc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }
		
		
		
		
		if (document.user_profile1.univ_hsc.value == "" )
          {
        	 mesg ="Please Fill your 10th University."
			 alert(mesg);
			 document.user_profile1.univ_hsc.focus();
	   		 document.user_profile1.univ_hsc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }
		
		
		
		
		if (document.user_profile1.ssc.value == "" )
          {
        	 mesg ="Please select your Under Graduation Course."
			 alert(mesg);
			 document.user_profile1.ssc.focus();
	   		 document.user_profile1.ssc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }
		
		
		
		
		if (document.user_profile1.ssc_spc.value == "" )
          {
        	 mesg ="Please Fill your Under Graduation Specialization."
			 alert(mesg);
			 document.user_profile1.ssc_spc.focus();
	   		 document.user_profile1.ssc_spc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }
		
		
		
		
		if (document.user_profile1.ssc_per.value == "" )
          {
        	 mesg ="Please Fill your Under Graduation Percentage."
			 alert(mesg);
			 document.user_profile1.ssc_per.focus();
	   		 document.user_profile1.ssc_per.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }



		
		if (document.user_profile1.inst_ssc.value == "" )
          {
        	 mesg ="Please Fill your Under Graduation Year Of Passing."
			 alert(mesg);
			 document.user_profile1.inst_ssc.focus();
	   		 document.user_profile1.inst_ssc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }

		
		if (document.user_profile1.univ_ssc.value == "" )
          {
        	 mesg ="Please Fill your Under Graduation University."
			 alert(mesg);
			 document.user_profile1.univ_ssc.focus();
	   		 document.user_profile1.univ_ssc.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }


		if(document.user_profile1.professional_gra.value == "")
		  {
				if (document.user_profile1.gra.value == "" )
				  {
					 mesg ="Please select your Graduation Course."
					 alert(mesg);
					 document.user_profile1.gra.focus();
					 document.user_profile1.gra.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
				
				
				
				
				if (document.user_profile1.grad_spc.value == "" )
				  {
					 mesg ="Please Fill your Graduation Specialization."
					 alert(mesg);
					 document.user_profile1.grad_spc.focus();
					 document.user_profile1.grad_spc.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
				
				
				
				
				if (document.user_profile1.grad_per.value == "" )
				  {
					 mesg ="Please Fill your Graduation Percentage."
					 alert(mesg);
					 document.user_profile1.grad_per.focus();
					 document.user_profile1.grad_per.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		
		
		
				
				if (document.user_profile1.inst_grad.value == "" )
				  {
					 mesg ="Please Fill your Graduation Year Of Passing."
					 alert(mesg);
					 document.user_profile1.inst_grad.focus();
					 document.user_profile1.inst_grad.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		
				
				if (document.user_profile1.univ_grad.value == "" )
				  {
					 mesg ="Please Fill your Graduation University."
					 alert(mesg);
					 document.user_profile1.univ_grad.focus();
					 document.user_profile1.univ_grad.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		  }



	if(document.user_profile1.gra.value == "")
		  {
				if (document.user_profile1.professional_gra.value == "" )
				  {
					 mesg ="Please select your Professional Graduation Course."
					 alert(mesg);
					 document.user_profile1.professional_gra.focus();
					 document.user_profile1.professional_gra.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
				
				
				
				
				if (document.user_profile1.professional_grad_spc.value == "" )
				  {
					 mesg ="Please Select your Professional Graduation Specialization."
					 alert(mesg);
					 document.user_profile1.professional_grad_spc.focus();
					 document.user_profile1.professional_grad_spc.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }

				if (document.user_profile1.professional_grad_per.value == "" )
				  {
					 mesg ="Please Fill your Professional Graduation Percentage."
					 alert(mesg);
					 document.user_profile1.professional_grad_per.focus();
					 document.user_profile1.professional_grad_per.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		
				
				if (document.user_profile1.professional_inst_grad.value == "" )
				  {
					 mesg ="Please Fill your Professional Graduation Year Of Passing."
					 alert(mesg);
					 document.user_profile1.professional_inst_grad.focus();
					 document.user_profile1.professional_inst_grad.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		
				
				if (document.user_profile1.professional_univ_grad.value == "" )
				  {
					 mesg ="Please Fill your Professional Graduation University."
					 alert(mesg);
					 document.user_profile1.professional_univ_grad.focus();
					 document.user_profile1.professional_univ_grad.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		  }
		  
		if (document.user_profile1.gra.value == "")
		  {
			if(document.user_profile1.professional_gra.value == "")
				 {
					 mesg ="Please select any Graduation/Professional Graduation Course."
					 alert(mesg);
					 document.user_profile1.gra.focus();
					 document.user_profile1.gra.style.backgroundColor = "#FFFFC6"  
					 document.user_profile1.professional_gra.style.backgroundColor = "#FFFFC6"  
					 return (false);
				  }
		  }

		
		if (document.user_profile1.total_skill.value == "" )
          {
        	 mesg ="Please enter Total Skills. It is used for the Searching your profile from Database."
			 alert(mesg);
			 document.user_profile1.total_skill.focus();
	   		 document.user_profile1.total_skill.style.backgroundColor = "#FFFFC6"  
       	     return (false);
          }


		return (true);
	}
//-------------------------------------------------------------------------------//
//--------------------------------------lcs_emp_reg_form_validator-------------------------------------------//

function emp_reg_form( )
{
if (document.emp_reg_form1.f_name.value == "" )


        {
        mesg ="Please enter first name."
		alert(mesg);
		document.emp_reg_form1.f_name.focus();
        return (false);
        }


if (document.emp_reg_form1.l_name.value == "" )
	{
	mesg ="You have not filled Last Name."
	alert(mesg);
	document.emp_reg_form1.l_name.focus();
	return (false);
	}


if (document.emp_reg_form1.email.value == "" )
	{
	mesg ="You have not filled Email."
	alert(mesg);
	document.emp_reg_form1.email.focus();
	return (false);
	
	}



if (document.emp_reg_form1.pass.value == "" )
	{
	mesg = "You have not filled Password."
	alert(mesg);	
	document.emp_reg_form1.pass.focus();
	return (false);
	
	}


if (document.emp_reg_form1.re_pass.value == "" )
	{
	mesg = "You have not filled Re-Password."
	alert(mesg);
	document.emp_reg_form1.re_pass.focus();
	return (false);
	
	}


if ( document.emp_reg_form1.pass.value != document.emp_reg_form1.re_pass.value )
	{
	mesg = "Your Password and Re-Password is not Same.\n"
	alert(mesg);
	document.emp_reg_form1.re_pass.focus();
	return (false);
	}



if (document.emp_reg_form1.dob.value == "" )
    {
    mesg = "Please enter Date of Birth of Employee."
	alert(mesg);
	document.emp_reg_form1.dob.focus();
    return (false);
    }


if (document.emp_reg_form1.c_add1.value == "" )
	{
	mesg ="You have not filled  Current Adderss line 1."
	alert(mesg);
	document.emp_reg_form1.c_add1.focus();
	return (false);
	
	}


if (document.emp_reg_form1.c_city_town.value == "" )
	{
	mesg = "You have not filled Current City."
	alert(mesg);
	document.emp_reg_form1.c_city_town.focus();
	return (false);
	
	}

if (document.emp_reg_form1.p_add1.disabled==false)
{
if (document.emp_reg_form1.p_add1.value == "" )
	{
	mesg = "You have not filled  Permanent Adderss line 1."
	alert(mesg);
	document.emp_reg_form1.p_add1.focus();
	return (false);
	
	}
}


if (document.emp_reg_form1.position.value == "" )
	{
	mesg ="You have not Select Position of Employee"
	alert(mesg);
	document.emp_reg_form1.position.focus();
	return (false);
	exit;
	}


if (document.emp_reg_form1.date_joining.value == "" )
	{
	mesg ="You have not Select Date Of Joining of Employee"
	alert(mesg);
	document.emp_reg_form1.date_joining.focus();
	return (false);
	
	}


if (document.emp_reg_form1.funtion.value == "" )
	{
	mesg ="You have not Select Funtion of Employee"
	alert(mesg);
	document.emp_reg_form1.funtion.focus();
	return (false);
	
	}

if (document.emp_reg_form1.sys_role.value == "" )
	{
	mesg ="You have not Select System Role of Employee"
	alert(mesg);
	document.emp_reg_form1.sys_role.focus();
	return (false);
	
	}

if (document.emp_reg_form1.place_posting.value == "" )
	{
	mesg = "You have not Enter Place of Posting of Employee"
	alert(mesg);
	document.emp_reg_form1.place_posting.focus();
	return (false);
	
	}
return (true);
}

//-----------------------------------------------------------------------------------------------//
//--------------------------------------EDIT_lcs_emp_reg_form_validator-------------------------------------------//

function edit_emp_reg_form( )
{
if (document.emp_reg_edit.f_name.value == "" )


        {
        mesg ="Please enter first name."
		alert(mesg);
		document.emp_reg_edit.f_name.focus();
        return (false);
        }


if (document.emp_reg_edit.l_name.value == "" )
	{
	mesg ="You have not filled Last Name."
	alert(mesg);
	document.emp_reg_edit.l_name.focus();
	return (false);
	}

if (document.emp_reg_edit.dob.value == "" )
    {
    mesg = "Please enter Date of Birth of Employee."
	alert(mesg);
	document.emp_reg_edit.dob.focus();
    return (false);
    }


if (document.emp_reg_edit.c_add1.value == "" )
	{
	mesg ="You have not filled  Current Adderss line 1."
	alert(mesg);
	document.emp_reg_edit.c_add1.focus();
	return (false);
	
	}


if (document.emp_reg_edit.c_city_town.value == "" )
	{
	mesg = "You have not filled Current City."
	alert(mesg);
	document.emp_reg_edit.c_city_town.focus();
	return (false);
	
	}

if (document.emp_reg_edit.p_add1.disabled==false)
{
if (document.emp_reg_edit.p_add1.value == "" )
	{
	mesg = "You have not filled  Permanent Adderss line 1."
	alert(mesg);
	document.emp_reg_edit.p_add1.focus();
	return (false);
	
	}
}

if (document.emp_reg_edit.position.value == "" )
	{
	mesg ="You have not Select Position of Employee"
	alert(mesg);
	document.emp_reg_edit.position.focus();
	return (false);
	exit;
	}


if (document.emp_reg_edit.date_joining.value == "" )
	{
	mesg ="You have not Select Date Of Joining of Employee"
	alert(mesg);
	document.emp_reg_edit.date_joining.focus();
	return (false);
	
	}


if (document.emp_reg_edit.funtion.value == "" )
	{
	mesg ="You have not Select Funtion of Employee"
	alert(mesg);
	document.emp_reg_edit.funtion.focus();
	return (false);
	
	}

if (document.emp_reg_edit.sys_role.value == "" )
	{
	mesg ="You have not Select System Role of Employee"
	alert(mesg);
	document.emp_reg_edit.sys_role.focus();
	return (false);
	
	}

if (document.emp_reg_edit.place_posting.value == "" )
	{
	mesg = "You have not Enter Place of Posting of Employee"
	alert(mesg);
	document.emp_reg_edit.place_posting.focus();
	return (false);
	
	}
return (true);
}

function emp_edit_dis()
{
	flag="";
	if(document.emp_reg_edit.emp_c2.checked)
	{
	   flag=true;
	   document.emp_reg_edit.p_add1.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_edit.p_add2.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_edit.p_city.style.backgroundColor    = "#F5EFEB"
	   document.emp_reg_edit.p_district.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_edit.p_state1.style.backgroundColor    = "#F5EFEB"
	   document.emp_reg_edit.p_country1.style.backgroundColor  = "#F5EFEB"
	   document.emp_reg_edit.p_zip1.style.backgroundColor  = "#F5EFEB"
	   
	   
	 }
	else
	{
	   flag=false;
	   
	  
	   
	  document.emp_reg_edit.p_add1.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_edit.p_add2.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_edit.p_city.style.backgroundColor    = "#FFFFFF"
	   document.emp_reg_edit.p_district.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_edit.p_state1.style.backgroundColor    = "#FFFFFF"
	   document.emp_reg_edit.p_country1.style.backgroundColor  ="#FFFFFF"
	   document.emp_reg_edit.p_zip1.style.backgroundColor  = "#FFFFFF"
	   
	}
	with(document.emp_reg_edit)
	{
		p_add1.disabled=flag;
		p_add2.disabled=flag;
		p_city.disabled=flag;
		p_district.disabled=flag;
		p_state1.disabled=flag;
		p_country1.disabled=flag;
		p_zip1.disabled=flag;
		
		
	}
	
}


//-----------------------------------------------------------------------------------------------//


function org_reg_form( )
{
if (document.org_reg_form1.comp_name.value=="" )
	{
	mesg = "You have not filled Company Name \n"
	alert(mesg);
	document.org_reg_form1.comp_name.focus();
	return (false);
	}

if (document.org_reg_form1.primary_contact.value=="" )
	{
	mesg = "You have not filled Primary Contact Person \n"
	alert(mesg);
	document.org_reg_form1.primary_contact.focus();
	return (false);
	}


if (document.org_reg_form1.primary_contact_desig.value=="" )
	{
	mesg = "You have not filled Primary Contact Designation \n"
	alert(mesg);
	document.org_reg_form1.primary_contact_desig.focus();
	return (false);
	}


if (document.org_reg_form1.email_p_contact.value=="" )
	{
	mesg = "You have not filled Email of Contact Person \n"
	alert(mesg);
	document.org_reg_form1.email_p_contact.focus();
	return (false);
	}


if (document.org_reg_form1.pass.value=="" )
	{
	mesg = "You have not filled Password \n"
	alert(mesg);
	document.org_reg_form1.pass.focus();
	return (false);
	}



if (document.org_reg_form1.c_pass.value=="" )
	{
	mesg = "You have not filled Re-Password \n"
	alert(mesg);
	document.org_reg_form1.c_pass.focus();
	return (false);
	}


if ( document.org_reg_form1.pass.value != document.org_reg_form1.c_pass.value )
	{
	mesg = "Your Password and Re-Password is not Same.\n"
	alert(mesg);
	document.org_reg_form1.c_pass.focus();
	return (false);
	}



if (document.org_reg_form1.add1.value=="" )
	{
	mesg = "You have not filled Address Line 1 \n"
	alert(mesg);
	document.org_reg_form1.add1.focus();
	return (false);
	}



if (document.org_reg_form1.city.value=="" )
	{
	mesg = "You have not filled City/Town \n"
	alert(mesg);
	document.org_reg_form1.city.focus();
	return (false);
	}

if (document.org_reg_form1.country_code.value=="" )
	{
	mesg = "You have not filled Country Code of Telephone Number \n"
	alert(mesg);
	document.org_reg_form1.country_code.focus();
	return (false);
	}


if (document.org_reg_form1.std_code.value=="" )
	{
	mesg = "You have not filled STD Code of Telephone Number \n"
	alert(mesg);
	document.org_reg_form1.std_code.focus();
	return (false);
	}


if (document.org_reg_form1.tel.value=="" )
	{
	mesg = "You have not filled Telephone Number \n"
	alert(mesg);
	document.org_reg_form1.tel.focus();
	return (false);
	}



if (document.org_reg_form1.mobile.value=="" )
	{
	mesg = "You have not filled Mobile Number \n"
	alert(mesg);
	document.org_reg_form1.mobile.focus();
	return (false);
	}

	return(true);
}

//-----------------------------------------------------------------------------------------------//
//--------------------------------check_forum_user--------------------------------------//

function check_forum_user()
{
   if (document.forum_user_reg.user_name.value== "" )
    {
		alert ( "You have not entered User Name" );
		document.forum_user_reg.user_name.focus();
		document.forum_user_reg.user_name.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.password.value== "" )
    {
		alert ( "You have not entered Password" );
		document.forum_user_reg.password.focus();
		document.forum_user_reg.password.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.re_password.value== "" )
    {
		alert ( "You have not entered Re-Password" );
		document.forum_user_reg.re_password.focus();
		document.forum_user_reg.re_password.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.password.value!=document.forum_user_reg.re_password.value)
    {
        alert ( "You repassword value is not same as password value" );
		document.forum_user_reg.re_password.focus();
		document.forum_user_reg.re_password.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.first_name.value== "" )
    {
		alert ( "You have not entered your first name" );
		document.forum_user_reg.first_name.focus();
		document.forum_user_reg.first_name.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.last_name.value== "" )
    {
		alert ( "You have not entered your Last Name" );
		document.forum_user_reg.last_name.focus();
		document.forum_user_reg.last_name.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if (document.forum_user_reg.age.value== "" )
    {
		alert ( "You have not entered your Age" );
		document.forum_user_reg.age.focus();
		document.forum_user_reg.age.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
	
   if (document.forum_user_reg.qualification.value== "" )
    {
		alert ( "You have not entered your Qualification" );
		document.forum_user_reg.qualification.focus();
		document.forum_user_reg.qualification.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
   if ((document.forum_user_reg.phone.value== "" ) && (document.forum_user_reg.mobile.value== "" ))
    {
		alert ( "You have to give atleast one contact number" );
		document.forum_user_reg.mobile.focus();
		document.forum_user_reg.mobile.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
	
}

//-----------------------------------------------------------------------------------------------//
//------------------------------------org_edit_form----------------------------------------------//

function org_edit_profile_form( )
{

if (document.org_profile_form1.comp_name.value=="" )
{

mesg = "You have not filled Company Name \n"
alert(mesg);

document.org_profile_form1.comp_name.focus();

return (false);
}

if (document.org_profile_form1.primary_contact.value=="" )
{

mesg = "You have not filled Primary Contact Person \n"
alert(mesg);

document.org_profile_form1.primary_contact.focus();

return (false);
}


if (document.org_profile_form1.primary_contact_desig.value=="" )
{

mesg = "You have not filled Primary Contact Designation \n"
alert(mesg);

document.org_profile_form1.primary_contact_desig.focus();

return (false);
}


if (document.org_profile_form1.add1.value=="" )
{

mesg = "You have not filled Address Line 1 \n"
alert(mesg);

document.org_profile_form1.add1.focus();

return (false);
}



if (document.org_profile_form1.city.value=="" )
{

mesg = "You have not filled City/Town \n"
alert(mesg);

document.org_profile_form1.city.focus();

return (false);
}

if (document.org_profile_form1.country_code.value=="" )
{

mesg = "You have not filled Country Code of Telephone Number \n"
alert(mesg);

document.org_profile_form1.country_code.focus();

return (false);
}


if (document.org_profile_form1.std_code.value=="" )
{

mesg = "You have not filled STD Code of Telephone Number \n"
alert(mesg);

document.org_profile_form1.std_code.focus();

return (false);
}


if (document.org_profile_form1.tel.value=="" )
{

mesg = "You have not filled Telephone Number \n"
alert(mesg);

document.org_profile_form1.tel.focus();

return (false);
}



if (document.org_profile_form1.mobile.value=="" )
{

mesg = "You have not filled Mobile Number \n"
alert(mesg);

document.org_profile_form1.mobile.focus();

return (false);
}

return(true);
}


function emp_dis()
{
	flag="";
	if(document.emp_reg_form1.emp_cl.checked)
	{
	   flag=true;
	   document.emp_reg_form1.p_add1.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_form1.p_add2.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_form1.p_city.style.backgroundColor    = "#F5EFEB"
	   document.emp_reg_form1.p_district.style.backgroundColor = "#F5EFEB"
	   document.emp_reg_form1.p_state1.style.backgroundColor    = "#F5EFEB"
	   document.emp_reg_form1.p_country1.style.backgroundColor  = "#F5EFEB"
	   document.emp_reg_form1.p_zip1.style.backgroundColor  = "#F5EFEB"
	   
	   
	 }
	else
	{
	   flag=false;
	   
	  
	   
	  document.emp_reg_form1.p_add1.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_form1.p_add2.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_form1.p_city.style.backgroundColor    = "#FFFFFF"
	   document.emp_reg_form1.p_district.style.backgroundColor = "#FFFFFF"
	   document.emp_reg_form1.p_state1.style.backgroundColor    = "#FFFFFF"
	   document.emp_reg_form1.p_country1.style.backgroundColor  ="#FFFFFF"
	   document.emp_reg_form1.p_zip1.style.backgroundColor  = "#FFFFFF"
	   
	}
	with(document.emp_reg_form1)
	{
		p_add1.disabled=flag;
		p_add2.disabled=flag;
		p_city.disabled=flag;
		p_district.disabled=flag;
		p_state1.disabled=flag;
		p_country1.disabled=flag;
		p_zip1.disabled=flag;
		
		
	}
	
}

function newBigWindow(URL,WIN_NAME)
{

	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-520;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

function newBigWindow1(URL,WIN_NAME)
{

	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-210;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}
//---------------------------------------------end_user_profile_form-----------------------------------------//
//------------------------------------Delete_inbox and sent mail-------------------------------------------//

	function deletedata()
	{
		document.manage_mail.status.value="Delete";
		document.manage_mail.action="inbox.php";
		document.manage_mail.submit();
	}
//------------------------------------------------------------------------------------------------------------//

//------------------------------------Delete_Projects----------------------------------------------------------//

	function deletedata1()
	{
		document.manage_pro.pro_status.value="Delete";
		document.manage_pro.action="user_edit.php?pop_pro_details=1";
		document.manage_pro.submit();
	}
//------------------------------------------------------------------------------------------------------------//



//-----------------------------pop_up_of_uploaded_cv_R1--------------------------------------------------------------------------//

function newBigWindow_cv(URL,WIN_NAME,path,can_id)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-200;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	var found_path=document.getElementById(path).value;
	var found_id=document.getElementById(can_id).value;
	window.open(URL+'&found_path='+found_path+'&found_id='+found_id,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=no,status=yes,toolbar=no,resizable=yes');
	return false;
}


//-----------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_uploaded_cv_R2--------------------------------------------------------------------------//

function newBigWindow_cv1(URL,WIN_NAME,can_id)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-200;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	//var found_path=document.getElementById(path).value;
	var found_id1=document.getElementById(can_id).value;
	window.open(URL+'&found_id1='+found_id1,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=no,status=yes,toolbar=no,resizable=yes');
	return false;
}


//-----------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_gen_info--------------------------------------------------------------------------//

function newBigWindow_user_edit_gen(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

function edit_fun1()
{
	edit_gen.edit_no_child.disabled=true;
   document.edit_gen.edit_no_child.style.backgroundColor = "#F5EFEB"
}

function edit_fun2()
{
	edit_gen.edit_no_child.disabled=false;
   document.edit_gen.edit_no_child.style.backgroundColor = "#FFFFFF"
}
//------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_corr_add--------------------------------------------------------------------------//

function newBigWindow_user_edit_corr_add(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//



//-----------------------------pop_up_of_user_edit_per_add--------------------------------------------------------------------------//

function newBigWindow_user_edit_per_add(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_tele_contact--------------------------------------------------------------------------//

function newBigWindow_user_edit_tele_contact(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_edu_details--------------------------------------------------------------------------//

function newBigWindow_user_edit_edu_details(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_curr_emp_details--------------------------------------------------------------------------//

function newBigWindow_user_edit_cur_emp_details(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_prev_emp_details--------------------------------------------------------------------------//

function newBigWindow_user_edit_prev_emp_details(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_prev_emp_details--------------------------------------------------------------------------//

function newBigWindow_user_edit_work_asp(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_passport--------------------------------------------------------------------------//

function newBigWindow_user_edit_passport(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-500;
	var POPUP_WIDTH = 750;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_passport--------------------------------------------------------------------------//

function newBigWindow_user_edit_pro_details(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-200;
	var POPUP_WIDTH = 750;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_certification--------------------------------------------------------------------------//

function newBigWindow_user_edit_certification(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_certification--------------------------------------------------------------------------//

function newBigWindow_user_edit_asso(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_award--------------------------------------------------------------------------//

function newBigWindow_user_edit_award(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_oversease_exp--------------------------------------------------------------------------//

function newBigWindow_user_edit_oversease_exp(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_mis--------------------------------------------------------------------------//

function newBigWindow_user_edit_mis(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

//-----------------------------pop_up_of_user_edit_uploaded_cv--------------------------------------------------------------------------//

function newBigWindow_user_edit_uploded_cv(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-500;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//
//-------------------------------------newBigWindow_notepad---------------------------------------------------//
function newBigWindow_notepad(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-300;
	var POPUP_WIDTH = 700;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//


//-----------------------------pop_up_of_user_edit_uploaded_photo--------------------------------------------------------------------------//

function newBigWindow_user_edit_uploded_photo(URL,WIN_NAME)
{
//alert("ash");
	var HEIGHT=screen.height;
	var POPUP_HEIGHT = HEIGHT-500;
	var POPUP_WIDTH = 780;
	var HEIGHT_POP=screen.height;
	HEIGHT_POP=(HEIGHT_POP/2) - (POPUP_HEIGHT/2);
	var WIDTH_POP=screen.width;
	WIDTH_POP=(WIDTH_POP/2) - (POPUP_WIDTH/2);
	
	window.open(URL,WIN_NAME,'top='+HEIGHT_POP+', left='+WIDTH_POP+', width='+POPUP_WIDTH+',height='+POPUP_HEIGHT+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	return false;
}

//--------------------------------------------------------------------------------------------------------------//

function processAjax(yourimportedString) { 
     
    url = "your_ASP_page?string=" + yourimportedString 
    if (window.XMLHttpRequest) { // Non-IE browsers 
      req = new XMLHttpRequest(); 
      req.onreadystatechange = targetDiv; 
      try { 
        req.open("GET", url, true); 
      } catch (e) { 
        alert(e); 
      } 
      req.send(null); 
    } else if (window.ActiveXObject) { // IE 
      req = new ActiveXObject("Microsoft.XMLHTTP"); 
      if (req) { 
        req.onreadystatechange = targetDiv; 
        req.open("GET", url, true); 
        req.send(); 

      } 
    } 
} 

function targetDiv() { 
    if (req.readyState == 4) { // Complete 
          if (req.status == 200) { // OK response 
              document.getElementById("MyDivName").innerHTML = req.responseText; 
          } else { 
            alert("Problem: " + req.statusText); 
          } 
    } 
} 


//-----------------------------------------------------------------------------------------------//
