function doCheck() {
	var e=0;
	var s = document.getElementById("optionalLink").value;
	if(s.length > 0){
    	if (s.indexOf("http://www.")== -1){
    	    if (s.indexOf("http://")== -1){
    	        if (s.indexOf("www.")== -1){
    	            alert("Please enter correct link address");
    	            return false;
    	         }
    	    }
    	}	
	}
	return true;
}
