function valfocus(i, name) { 
	var id = document.getElementById(name);

	if(id.value==i) {
		id.value = "";
<!-- 		id.style.color = "#000";	 -->

	}
}

function valblur(i, name, clr) { 
	var id = document.getElementById(name);
	if(id.value=="") {
		id.value = i;
 		//id.style.color = clr;
//		id.className = "textarea";		
		
		id.style.backgroundColor = "#ffffff";

	} else if(id.value!=i) {
		id.style.background = "#f9f9f0";
		//id.style.color = clr;	 
		id.style.borderColor = "#999999";
	}
}



									function sendFeedBack(){
									var error= '';
								
									if(document.frm.name.value=="" || document.frm.name.value=="Name") {
										error += "Enter your name \n";
									}
								
									if(document.frm.email.value=="" || document.frm.email.value=="Email") {
										error += "Enter your email \n";
									}
									else {
										if(document.frm.email.value.indexOf('.') < 0) {
											error += "Invalid email address\n";
										}
										else {
											if(document.frm.email.value.indexOf('@') < 0) {
												error += "Invalid email address\n";
											}
										}
									}
								
									if(document.frm.comment.value=="" || document.frm.comment.value=="Comments") {
										error += "Enter your comment \n";
									}
								
									if(error != '') {
										error = "You have the following error[s] \n ---------------------------------- \n"+error;
										alert(error);
									}
									else {
										document.frm.submit();
									}
								}

								

function valfocus(i, name) { 

	var id = document.getElementById(name);



	if(id.value==i) {

		id.value = "";

<!-- 		id.style.color = "#000";	 -->



	}

}



function chngbkg(i, name) {

	var id = document.getElementById(name);

  	if(id.value==i) {

		id.value = "";

<!-- 		id.style.color = "#000";	 -->



	}

}

function revertbkg(i, name,clr) {

  	var id = document.getElementById(name);

	if(id.value=="") {



		id.value = i;

 		id.style.color = clr;		 

	

	} else if(id.value!=i){


 		id.style.color = clr;	

		id.style.borderColor = "#999999";

	}

}
