
var link = document.link.lnk.value;    
	
function MakeURL(href, name)
{	      	
  	var url = "<a onmouseover='window.status=" + name + ";return true;' target=_blank href=" + href + link + ">" + name + "</a>";
	document.write(url);
}

function MakeURLCloaked(href, name)
{	      	
  	var url = "<a onmouseover='window.status=" + name + ";return true;' target=_blank href=" + href + ">" + name + "</a>";
	document.write(url);
}

function MakeImageURL(href, src, alt)
{	      	
  	var url = "<a onmouseover='window.status=" + name + ";return true;' target=_blank href=" + href + link + "><img src=" + src + " alt=" + alt + " border=0 ></a>";
	document.write(url);
}

function MakeImageURLCloaked(href, src, alt)
{	      	
  	var url = "<a onmouseover='window.status=" + name + ";return true;' target=_blank href=" + href + "><img src=" + src + " alt=" + alt + " border=0 ></a>";
	document.write(url);
}


function isEmailAddr(email)
{
  var result = false;
  var theStr = new String(email);
  var index = theStr.indexOf("@");

  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
   
   //alert(pindex);
   //alert(theStr.length);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  
  if(!result)
  {
		alert("Please provide a valid email address!");
  }
  
  return result;

}

function bookmarksite2(title, url){
if (document.all)
window.external.AddFavorite(url, title);
//else if (window.sidebar)
//window.sidebar.addPanel(title, url, "");
}


function bookmarksite(title, url)
{
	//var IEstring = "<a href='javascript:window.external.addFavorite"
//IEstring += "(url,title);' title='add to favorites'>favorites<\/a>" ;
var NSstring = "Click [Ctrl + D] ";
var OPstring = "Click [Ctrl + T]";
var OTHstring = "Bookmark this page!"
var whichString = OTHstring ;
var agt = navigator.userAgent.toLowerCase();
var app = navigator.appName.toLowerCase();
var ieAgent = agt.indexOf('msie');
var nsAgent = app.indexOf('netscape');
var opAgent = app.indexOf('opera');

if (ieAgent!= -1) 
	{ //whichString = IEstring;
	  //document.write(whichString)
	  //document.write('<a href = "javascript:CreateBookmarkLink(title, url)");">Add to Favorites</a>'); 
	  window.external.AddFavorite( url, title); 

 	} 
else if (nsAgent!= -1)
	{ whichString = NSstring;
	   alert("Please " + whichString + " to add this site to your favorites"); 
 	} 
else if (opAgent!= -1)
	{whichString = OPstring;
	 alert("Please " + whichString + " to add this site to your favorites"); 
 	}

//document.write(whichString)
//alert("Please " + whichString + " to add this site to your favorites"); 




 
}






