function chkF(where){

	$("#loadmsg").slideUp("fast");

	var n= $('#xname').val();
	var e= $('#xemail').val();
	var c= $('#xcountry').val();
	var m= $('#xcomments').val();
	var s= $('#xsecurity').val();
	var b= $('#xsubject').val();
	var w = $('#xweb').val();
	var i= $('#fid').val();

	if(n==""){
		$("#mx_box").html("Please enter your name properly.");
		$("#loadmsg").slideDown("fast");
		return false;
	}

	if(e==""){
		$("#mx_box").html("Please enter your email properly.");
		$("#loadmsg").slideDown("fast");
		return false;
	}

	if(w){
		if(w.substring(0,7) != "http://"){
			$("#mx_box").html("Please enter a properly formatted URL.>");
			$("#loadmsg").slideDown("fast");
			return false;
		}
	}

	if(m==""){
		$("#mx_box").html("<h3>Please enter some comments.");
		$("#loadmsg").slideDown("fast");
		return false;
	}

	if(s==""){
		$("#mx_box").html("Please enter the security code correctly.");
		$("#loadmsg").slideDown("fast");
		return false;
	}

}

function repto(thisperson){
	$("#xcomments").val("@"+thisperson+" ");
	//$("#comtxt").text(" in response to "+ thisperson);
	//$("#xcomments").focus();
}

function cn(what, rst){
if(rst){
	 $(what).slideToggle("slow", function(){
		$(rst).show();
	});
} else {
	 $(what).slideToggle("slow");
}
}

	$(document).ready(function(){
		var arrtxt = new Array("^ Collapse", "+ Expand");
		$("#arrbut").html(arrtxt[0]);
		$("#hbut").click(function(){
				document.location.href='http://www.uday-sharma.com/';
		});
		$("#arrbut").click(function () {
     		 $("#booksbase").slideToggle("slow");
			$("#arrbut").text($("#arrbut").text() == arrtxt[0]?arrtxt[1]:arrtxt[0]);
		});

	});