//---------------------------------------

// search form clear function
function input(num)
{

if (num == 1)
{
searchform.keyword.value = "";
}

}

//---------------------------------------
//---------------------------------------

// hide google ads and menu

function hide(num)
{

if (num == 1)
{
tblads.style.display ="none";
}



if (num == 2);
{
btnmenu.innerHTML="<p><a href='javascript:closem()' style='text-decoration: none'><font color='#808080'>Close Menu</font><img border='0' src='../images/im_downup.gif' width='10' height='6'></a></p>";
tblmenu.style.display ="";
}



}
//---------------------------------------
//---------------------------------------
// hide google ads and menu part 2

function closem()
{
tblmenu.style.display ="none";
btnmenu.innerHTML="<p><a href='javascript:hide(2)' style='text-decoration: none'><font color='#808080'>More Menu</font><img border='0' src='../images/im_downarrow.gif' width='10' height='6'></a></p>";
}

//---------------------------------------
//---------------------------------------


// add the curent page to favorite

function addfavorites()
{
bookmarkurl= location.href
bookmarktitle= document.title
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

//---------------------------------------
//---------------------------------------

// current screen resolution

// close the message after screen resolution displayed

function closemessage()
{
document.getElementById("message").style.visibility="hidden";
}

//-->
//---------------------------------------
//---------------------------------------

// get the url of the current page

<!-- Begin
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var url = location.href.substring(dir.length,location.href.length+1);

if (url=="")
{
url="default.asp"
}

// End -->

//---------------------------------------
//---------------------------------------

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'window=popvote toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=100,height=100,left = 350,top = 250');");
}
// End -->
//----------------------------------------
//----------------------------------------

// page redirection to vote.asp for rating

function rate(rank)
{
location.replace("vote.asp?rate="+rank+"&page="+url+"")
}

//--------------------------------------
//--------------------------------------

function showcookies()
{
{
document.getElementById("cookies").style.visibility="visible";
document.getElementById("browser").style.visibility="hidden";
document.getElementById("cookies").style.width=450;
document.getElementById("cookies").style.height=250;
document.getElementById("cookies").style.position="absolute"
}
}

function closecookie()
{
{
document.getElementById("cookies").style.visibility="hidden";
}
}

function deletecookies()
{

var conf
conf = confirm("Are you sure you want to delete?")
if (conf == true)

{
location.replace("deletecookies.asp?page="+url+"")
}

else

{


}

}


//--------------------------------------
//--------------------------------------


//---------------------------------------
// Add more info on newform.asp

function moreinfo(st)
{
if (st=="yes")
{
tblmoreinfo.style.display ="";
}

else
{
tblmoreinfo.style.display ="none";
}


}



function change_settings()
{
{
document.getElementById("browser").style.visibility="visible";
document.getElementById("cookies").style.visibility="hidden";
document.getElementById("browser").style.width=450;
document.getElementById("browser").style.height=250;
document.getElementById("browser").style.position="absolute"
}
}

function close_change_settings()
{
{
document.getElementById("browser").style.visibility="hidden";
}
}






//---------------------------------------
//---------------------------------------




//--------------------------------------- If icon is not working replace with my own icon

function replace_icon()
{

if (webicon.complete==false){
webicon.src = "http://www.htoshmatov.com/links/images/noimage.jpg";
}

}
//---------------------------------------








function no_error()
{ return true; }
window.onerror=no_error;
//-->