
        //
        // AmIHotOrNot.com.au //
        //

        // STATUS
        window.status="Am I Hot Or Not"

        // RIGHT CLICK OVER IMAGES
        function right(e) {
        var msg = "Vote";
        if (navigator.appName == 'Netscape' && e.which == 3) {
        alert(msg);
        return false;
        }
        if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
        alert(msg);
        return false;
        }
        else return true;
        }

        function AMIHON() 
        {
        if(document.images)
        {
        for(i=0;i<document.images.length;i++)
        {
        document.images[i].onmousedown = right;
        document.images[i].onmouseup = right;
        }
        }
        }

        // POPUP WINDOWS
        function NewWindow(mypage, myname, w, h, scroll) {
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
        win = window.open(mypage, myname, winprops)
        if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
        }
        
        //function new_Msg() {window.open('/message_boards/message.asp?id=<%=iNextID%>','indexMsg','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');}
        //function new_Email() {window.open('/email.asp?id=<%=iNextID%>','indexEmail','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');}
        
        

        // VALIDATION
        function validate() {
        if (document.frmLogin.txtUserName.value.length < 1) {
        alert("Username Requied");
        return false;
        }
        if (document.frmLogin.txtPassword.value.length < 1) {
        alert("Password Requied");
        return false;
        }
        return true;
        } 


        // SHOW ME MALE/FEMALE
        function setShowMe(iI){
        return true
        }
        
        function changeShowMe(){
        location.href='ChangeMode.asp?mode=showme&value=' + cmbShowMe.options[cmbShowMe.selectedIndex].value;
        }

        // VOTE DASH

        function changeImages(rating) {
        for(i=1;i<=10;i++)
        document.images['rank'+i].src = "/Images/voteEmpty.gif";
        for(i=1;i<=rating;i++)
        document.images['rank'+i].src = "/Images/voteFilled.gif";
        }
        
        function VchangeImages(rating) {
        for(i=1;i<=11;i++)
        document.images['Vrank'+i].src = "/Images/voteEmpty.gif";
        for(i=1;i<=rating;i++)
        document.images['Vrank'+i].src = "/Images/voteFilled.gif";
        }

        // NEWUSER

        function checkData(){

        if(document.form1.userid.value.length<5){
        alert('You need to enter a user name of at least 5 charaters');
        document.form1.userid.focus()
        return false;
        }

        if(document.form1.password1.value.length<5){
        alert('You need to enter a password of at least 5 charaters');
        document.form1.password1.focus()
        return false;
        }

        if(document.form1.password1.value!=document.form1.password2.value){
        alert('Your passwords dont match, please re-enter them');
        document.form1.password1.value='';
        document.form1.password2.value='';
        document.form1.password1.focus()
        return false;
        }

        if(document.form1.txtGender.selectedIndex==0){
        alert('Please specify if you are male or female');
        document.form1.txtGender.focus()
        return false;
        }

        if(document.form1.txtAge.selectedIndex==0){
        alert('You need to enter your age to register');
        document.form1.txtAge.focus()
        return false;
        }

        if(document.form1.txtCountry.selectedIndex==0){
        alert('You need to enter your country to register');
        document.form1.txtCountry.focus()
        return false;
        }

        if(document.form1.txtState.selectedIndex==0){
        alert('You need to enter your state to register');
        document.form1.txtState.focus()
        return false;
        }

        if(document.form1.txtpostCode.value.length<4){
        alert('You need to enter your post code to continue');
        document.form1.txtpostCode.focus()
        return false;
        }


        if(document.form1.email.value.length==0){
        alert('You need to enter your e-mail address to continue');
        document.form1.email.focus()
        return false;
        }

        if(document.form1.img.value.length<4){
        alert('You must load a image JPG ONLY!');
        document.form1.img.focus()
        return false;
        }
        if(document.form1.message.value.length<4){
        alert('Opps You now need a message!');
        document.form1.message.focus()
        return false;
        }
        return true;

        }

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);
}