	function validateReview(){
										//alert('ok');
										var user=document.getElementById('user_name');
										var rev=document.getElementById('user_review');
										//alert(rev);
										if(user.value=='')
										{
											alert('User Name not supplied');
											user.focus();
											return false;
										}
										else if(rev.value=='')
										{
											alert('Review not supplied');
											rev.focus();
											return false;
										}
										else
										
										{
						
											return true;
										}
	}
										
 // Get base url
url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);


function get_radio_value()
		{
			
		for (var i=0; i < document.subscribe.sub_choice.length; i++)
		   {
		   if (document.subscribe.sub_choice[i].checked)
		      {
		      var rad_val = document.subscribe.sub_choice[i].value;
		      return rad_val;
		      }
		   }
		   return 0;
		}
		
		
function ajax_do(url)
	{
		
		var rad_val2=get_radio_value();
		
		if (rad_val2==0)
		{
		window.alert('Select a valid choice...!');
		return false;
		}
		
		
		//var rad_val2=2;
		div = document.getElementById('right_subscribe_div');
		div.innerHTML = '<span style="color: red;">Please Wait....</span>';
		
		
		if (url.substring(0, 4) != 'http') {
		                url = base_url + url + '&wid=' + rad_val2;
		        }
		
		        // Create new JS element
		        var jsel = document.createElement('SCRIPT');
		        jsel.type = 'text/javascript';
		        jsel.src = url;
		
		        // Append JS element (therefore executing the 'AJAX' call)
		        document.body.appendChild (jsel);
	}

	
	function empty()
	{
		//alert("Empty it");
		document.searchRecord.searchKeyword.value="";
		document.searchRecord.searchKeyword.focus();
	}
	function Validatesearch(){
		//alert('OK');
		if((document.searchRecord.searchKeyword.value=='') ||(document.searchRecord.searchKeyword.value=='Enter Laptop Model/Brand Here'))
		{
			alert('No Keyword Supplied');
			document.searchRecord.searchKeyword.focus();
			return false;
		}
		else
		{
			val=document.searchRecord.searchKeyword.value;
			document.searchRecord.action="search.php?searchKeyword="+val;
			document.searchRecord.submit();
			return true;
		}
		
	}
	function Leftempty()
	{
		//alert("Empty it");
		document.leftsearchRecord.searchKeyword.value="";
		document.leftsearchRecord.searchKeyword.focus();
	}
	function ValidateLeftsearch(){
		//alert('OK');
		if((document.leftsearchRecord.searchKeyword.value=='') ||(document.leftsearchRecord.searchKeyword.value=='Enter Laptop Model/Brand Here'))
		{
			alert('No Keyword Supplied');
			document.leftsearchRecord.searchKeyword.focus();
			return false;
		}
		else
		{
			val=document.leftsearchRecord.searchKeyword.value;
			document.leftsearchRecord.action="search.php?searchKeyword="+val;
			document.leftsearchRecord.submit();
			return true;
		}
		
	}
