PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<script>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width-20);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height + 25);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width+20;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=white scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=white scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block">')
writeln('<center><a style="{font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #444444; TEXT-DECORATION: none;}" href="javascript:window.close()" target="_parent" class="style1">CLOSE WINDOW</a></center>')
writeln('</body></html>');
close();
}}

function openIniquire(mypage) {
    var winl = (screen.width-305)/2;
    var wint = (screen.height-320)/2;
    var settings = 'height=320,width=305,top='+wint+',left='+winl+',scrollbars=no,resizable=yes';
    toopen=window.open(mypage,'iniquire',settings);
    if (parseInt(navigator.appVersion) >= 4) {
        toopen.window.focus();
    }
}

function toggleMenu(currMenu) {
    if (document.getElementById) {
        thisMenu = document.getElementById(currMenu).style
        if (thisMenu.display == "block") {
            thisMenu.display = "none"
        } else {
            thisMenu.display = "block"
        }
        return false
    } else {
        return true
    }
}

function checkSize(elem, maxlen) {
    if (elem.value.length > maxlen) {
        alert('The maximum length of this field is ' + maxlen + ' symbols.\n'+
              'The content will be cut until this size.');
        this.value = this.value.substring(0, maxlen);
    }
}

function showContent() {
    var source = document.getElementById("siteContent");
    var dest = document.getElementById("tdContent");
    dest.innerHTML = source.innerHTML;
	source.innerHTML = "";
    //document.body.removeChild(source);
}
function callSubmit()
{
	 document.frmApplicationTermsCond.submit();
}
