﻿// JScript File


<!--
function ClearForm() {
  document.testform.email.value= "";
}
function check(text)
{
	 if(isNaN(text.value))
        {
           alert("Only numbers are allowed");
           text.focus();
          text.select();
          return false;
	    }
        text.focus();
}

function trim(str)
{
return str.replace(/^\s+/g, "").replace(/\s+$/g, "");
}

function checkEmail(str)
{
var email=document.getElementById("txtprefEmail").value;
//email.replace(/^\s+/g, "").replace(/\s+$/g, "");
email=trim(email)
if (email.length > 0)
{
alert("Confirm your Email id : "+ email);
//alert("You 
}
}
function checkJobtitle(str)
{
var jt=document.getElementById("txtJobname").value;
//email.replace(/^\s+/g, "").replace(/\s+$/g, "");
jt=trim(jt)
if (jt.length > 0)
{
alert("Confirm the Spelling : Not editable later");
//alert("You 
}
}
    
function blockNumbers(text)
{
	 if(isNaN(text.value))
        {
         return true;
	    }
	    else
	    {
	    alert("Only characters are allowed");
        text.focus();
        text.select();
        return false;
        }
         text.focus();
}
function showeditjob(id1,id2,id3,id4)
			{
				if (document.getElementById)
				{
					obj1 = document.getElementById(id1);
					if (obj1.style.display == "")
					{
						obj1.style.display = "none";
					} 
					obj2 = document.getElementById(id2);
					if (obj2.style.display == "none")
					{
						obj2.style.display = "";
					} 
					obj3 = document.getElementById(id3);
					if (obj3.style.display == "none")
					{
						obj3.style.display = "";
					} 
					obj4 = document.getElementById(id4);
					if (obj4.style.display == "none")
					{
						obj4.style.display = "";
					} 
					
				}
			}
			function hideeditjob(id1,id2,id3,id4)
			{
				if (document.getElementById)
				{
					obj1 = document.getElementById(id1);
					if (obj1.style.display == "none")
					{
						obj1.style.display = "";
					} 
					obj2 = document.getElementById(id2);
					if (obj2.style.display == "")
					{
						obj2.style.display = "none";
					} 
					obj3 = document.getElementById(id3);
					if (obj3.style.display == "")
					{
						obj3.style.display = "none";
					}
					obj4 = document.getElementById(id4);
					if (obj4.style.display == "")
					{
						obj4.style.display = "none";
					}  
					
				}
			}
			




