










/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,8)=="required"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("One or more of the required elements are not completed. Please complete them, then submit again!")
return false
}
else
return true
}




    dom = (document.getElementById) ? 1 : 0;
    function activatefield(what)
    {
      if (dom) {
        what.style.backgroundColor='#f3f3f3';
      }
    }
    function deactivatefield(what)
    {
      if (dom) {
        what.style.backgroundColor='#ffffff';
      }
    }
    function kBookmark() {
        if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {        
            var url="http://www.freeproxysite.com";
            var title="Free Proxy Site";
            window.external.AddFavorite(url,title);
        } else {
          window.open('/bookmark.php','Bookmark',config='height=380,width=540, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, directories=no, status=no');
        }
    }
    function kTellFriend()
    {
        window.open('/tellafriend.php','TellAFriend',config='height=380,width=540, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, directories=no, status=no');    
    }
    function myurlgo(obj)
    {
    	destination = obj.options[obj.selectedIndex].value;
    	if (destination) location.href = destination; 
    }

	// <![CDATA[
	function toggle(objId, togId) {
	  var o = document.getElementById(objId), t = document.getElementById(togId);
	  if (o.style.display == 'none') {
	    o.style.display = 'block';
	    t.innerHTML = '<a href="#"><b>Hide</b></a>';
	  } else {
	    o.style.display = 'none';
	    t.innerHTML = '<a href="#"><b>Read</b></a>';
	  }
	}
	// ]]>
