function cleanState(id) {
	var state;	
	state = document.getElementById(id);	
	
	if (state.value == "First Name" || state.value == "Last Name" || state.value == "Father's/Mother Name" || state.value == "Address" || state.value == "City" || state.value == "State" || state.value == "Phone/Mobile" || state.value == "Email" || state.value == "Comments" || state.value == "Verify")
    {	  	  	
        state.value = "";
        state.style.color = "#3a3737";
	    state.style.fontWeight = "bold";
    }
}

function changeState(id) {
	var state;	
	state = document.getElementById(id);	

	state.style.color = "#3a3737";
	state.style.fontWeight = "bold";
    
    if(id == 'first_name_id'){
        if(!(state.value))
        {
            state.value = "First Name";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'last_name_id'){
        if(!(state.value))
        {
            state.value = "Last Name";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'firm'){
        if(!(state.value))
        {
            state.value = "Father's/Mother Name";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'address'){
        if(!(state.value))
        {
            state.value = "Address";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'city'){
        if(!(state.value))
        {
            state.value = "City";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'state'){
        if(!(state.value))
        {
            state.value = "State";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
     if(id == 'contact_no'){
        if(!(state.value))
        {
            state.value = "Phone/Mobile";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'email'){
        if(!(state.value))
        {
            state.value = "Email";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    
    if(id == 'comments'){
        if(!(state.value))
        {
            state.value = "Comments";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    if(id == 'salutation'){
        if(!(state.value))
        {
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    if(id == 'country'){
        if(!(state.value))
        {
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
    if(id == 'calculate'){
        if(!(state.value))
        {
            state.value = "Verify";
            state.style.color = "#989494";
	        state.style.fontWeight = "normal";
        }
    }
}
