//SCRIPT FOR THE MENUBAR navigation
function menuBar(){ 
    if(navigator.appVersion.indexOf("MSIE")==-1){
        return;
    }
    var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';
    for(i=0;i<10;i++){
        g=document.getElementById(bv+nn);if(g){
            lg=g.getElementsByTagName("LI");if(lg){
                for(k=0;k<lg.length;k++){
                    lg[k].onmouseover=function(){
                        c=this.className;cl=(c)?c+' '+cs:cs;
                        this.className=cl;
                    };lg[k].onmouseout=function(){
                        c=this.className;
                        this.className=(c)?c.replace(r,''):'';
                    };
                }
            }
        }nn=i+1;
    }
}
function showhide(showhide)
{
    var contentStatus = document.getElementById(showhide);
    if (contentStatus.style.display != "none")
    {
        contentStatus.style.display = "none";
    }
    else
    {
        //items are currently hidden, so display them
        contentStatus.style.display = "block";
    }
}

function bottomCopy(){
	
    document.write('<div id="bot_text">Best viewed with 1024 x 768 display resolution. Copyright &#169; 2009 Blue Orange Pte Ltd. All rights reserved</div>');
}

// Validation code
// Validate that number is numeric
var InputValidator  = {
    numericValidator : function(value) {
        if (typeof value == 'undefined' || value == null ){
            return false;
        } else {
            return value.toString().match(/^[0-9]+$/) ? true: false;
        }
    },
    stringValidator : function(value) {
        if (typeof value == 'undefined' || value == null ){
            return false;
        } else {
            return value.toString().match(/^[a-zA-Z]+$/) ? true: false;
        }
    },
    floatValidator: function (value){
        return value.toString().match(/^[-+]?[0-9]*\.?[0-9]+$/) ? true: false;
    }
};