function add_favorites()
{
	var detect = navigator.userAgent.toLowerCase();
	//alert(detect);
	
	if(detect.indexOf('opera') + 1) alert("After you close this dialog please press CTRL D to add MyURL.in to Favorites");
	else if(detect.indexOf('msie') + 1) window.external.AddFavorite("http://www.MyURL.in","~MyURL.in");
	else if(detect.indexOf('firefox') + 1) alert("After you close this dialog please press CTRL D to MyURL.in to Favorites");
	else if(detect.indexOf('netscape') + 1) alert("After you close this dialog please press CTRL D to add MyURL.in to Favorites");
	else alert("Please use your browser's menu to add MyURL.in to Favorites (or press CTRL D)");
}
function makeanonyurl(){
  document.baseform.url_redirect.value = "http://a.myurl.in/?"+document.baseform.url.value;
}

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}
