//<script>
function Is(){
	if(typeof(document.getElementById)!="undefined"){
		this.DOM = true;
		if(window.navigator.userAgent.search(/MSIE/i) >= 0) this.IE5 = true;
	}
}
var	is=new Is();
function resizeIt(){
	var __w = is.IE5 ? document.body.clientWidth : window.innerWidth, __x1;
	var __h = is.IE5 ? document.body.clientHeight : window.innerHeight, __y1, __y2;
	var __ms = document.getElementById("mainsection");
	if(__ms == null) return;
	__ms = __ms.style;
	__ms.display = "none";
	with(document.getElementById("topsection")){
		with(style){
			position = "absolute";
			width = __w;
		}
		__y1 = offsetHeight;
	}
	with(document.getElementById("bottomsection")){
		with(style){
			position = "absolute";
			width = __w;
		}
		__y2 = offsetHeight;
		style.top = __h - __y2;
	}
	with(document.getElementById("leftsection")){
		with(style){
			position = "absolute";
			top = __y1;
			height = __h - __y1 - __y2;
		}
		__x1 = offsetWidth;
	}
	with(__ms){
		position = "absolute"
		left = __x1;
		top = __y1;
		width = __w - __x1;
		height = __h - __y1 - __y2;
		display = "block";
	}
}
if(is.DOM){
	document.write("<link rel='stylesheet' type='text/css' href='/Frames.css' />");
	onresize = resizeIt;
}

MSFPhover = 
  (((navigator.appName == "Netscape") && 
  (parseInt(navigator.appVersion) >= 3 )) || 
  ((navigator.appName == "Microsoft Internet Explorer") && 
  (parseInt(navigator.appVersion) >= 4 ))); 
function MSFPpreload(img) {
  var a=new Image(); a.src=img; return a; 
}
if(MSFPhover) {
	icom_on = MSFPpreload("/img/icom_on.gif");
	icom_off = MSFPpreload("/img/icom_off.gif");
}
function swap(n, i) {
	if(MSFPhover) document[n].src=i.src
}

function Check(i,n){
	if(document.forms[0].elements[i].value == ''){
		alert('Please enter ' + n);
		document.forms[0].elements[i].focus();
		return true;
	}
	return false;
}
function send_mail(){
	window.open("mailto:" + document.getElementById("to").value + //
				"@i-com.ro?subject=" + document.getElementById("subject").value + //
				"&body=FirstName:" + document.getElementById("FirstName").value + //
				"%0ALastName:" + document.getElementById("LastName").value + //
				"%0AJobTitle:" + document.getElementById("JobTitle").value + //
				"%0ACompany:" + document.getElementById("Company").value + //
				"%0AEmail:" + document.getElementById("Email").value + //
				"%0A%0A" + escape(document.getElementById("body").value));
}

function initIt(){
	if(is.DOM) window.setTimeout("resizeIt()", 1, "JavaScript");
}
onload = initIt;
