// Checking whether the value of the search field is null

function CheckForm ()	{
	//Check for a word to search
	//alert("hi !!!");
	if (document.frmSiteSearch.search.value=="")	{
	alert("Please enter at least one keyword to search");
	document.frmSiteSearch.search.focus();
	return false;
	}	
	return true;
}

// Rolling the link images

/*function changeImage(imgSrc)	{
document.all.imgBig.src = imgSrc;
}*/

function roll_over(img_name, img_src)	{
//alert('hi');
document[img_name].src = img_src;
}

// Increase / Decrease the font size by the user

var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('td');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('td');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

// Sending the page as URL to a friend

/*function sendLink() {
alert(window.location);
//text = "Check out this page:  " + window.location;
return("mailto:?subject= "+window.location);
}*/

function sendLink()	{ 
  //var to = "abc@domain.com"; 
    var subject = "Check out this link"; 
    var body = "This link could be useful to you "+window.location; 
    /*var doc = "mailto:" + to +"?Subject=" + escape(subject) 
              +"&body=" + escape(body);*/
	var doc = "mailto:?Subject=" + escape(subject) +"&body=" + escape(body);
    window.location = doc; 
    }
	
// Make the current url your default home page

// Print the page

function printpage() {
window.print();  
}
