function init(){
	var containerHeight=document.getElementById('container-content').offsetHeight;
	var windowheight;

	if(containerHeight>589){
		if(document.getElementById('container-content').style.setAttribute){
			document.getElementById('container-content').style.setAttribute('height',(document.getElementById('container-content').offsetHeight-22)+'px')
		}else{
			document.getElementById('container-content').style.height=(document.getElementById('container-content').offsetHeight-22)+'px';
		}
	}else{
		document.getElementById('container-content').style.height=589+"px";
	}
	document.getElementById('container-main').style.height=document.getElementsByTagName('HTML')[0].scrollHeight+"px";
}

if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
}

if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
}else{
	check = true;
}

var win = null;
function openCentered(page,myname,w,h,scroll) {
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',dependent=yes'
win = window.open(page,myname,settings)
}

function jumpTo(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function email(name, domain, tld) {
	var printemail = '<a href="mailto:'+name+'@'+domain+'.'+tld+'">'+name+'@'+domain+'.'+tld+'</a>';
	document.write(printemail);
}

function Validate(theForm) {
	theForm.action = '/application/';

	if(theForm.fullname.value=="") {
		theForm.fullname.focus();
		return(false);
	}

	if(theForm.loaction.value=="") {
		theForm.loaction.focus();
		return(false);
	}

	if(theForm.age.value=="") {
		theForm.age.focus();
		return(false);
	}

	if(theForm.size.value=="") {
		theForm.size.focus();
		return(false);
	}

	if(theForm.citizenship.value=="") {
		theForm.citizenship.focus();
		return(false);
	}

	if(theForm.zodiacsign.value=="") {
		theForm.zodiacsign.focus();
		return(false);
	}

	if(theForm.phone.value=="") {
		theForm.phone.focus();
		return(false);
	}
}
