function resizeIframe() {

	// Must launched on the body onload event handler for IE
	// Use document.documentElement if you are in Compat mode
	i = parent.document.getElementById(window.name)
	iHeight = document.body.scrollHeight
	i.style.height = iHeight + 5 + "px"
}

function window1()
{
window.open("","w1","width=700,height=450,left=50,top=50,resizable=no,scrollbars=yes,menubar=no,") 

} 

function window2()
{
window.open("","w2","width=790,height=500,left=0,top=0,resizable=no,scrollbars=yes,menubar=no,") 
}

function window3()
{
window.open("","w3","fullscreen=yes,resizable=no,scrollbars=yes") 
} 

//to stop see source code by click right button
function nocontextmenu() 
	{
	event.cancelBubble = true
	event.returnValue = false;
	alert('You are wellcom to visit our website!');
	return false;
}

function norightclick(e) 
{
	if (window.Event) 
	{
	if (e.which == 2 || e.which == 3)
	alert('You are wellcom to visit our website!');
	return false;
	}
	else
	if (event.button == 2 || event.button == 3)
	{
	alert('You are wellcom to visit our website!');
	event.cancelBubble = true
	event.returnValue = false;
	return false;
	}
}
document.oncontextmenu = nocontextmenu; // for IE5+
//document.onmousedown = norightclick; // for all others

function windowOpener(loadpos){
  controlWindow=window.open(loadpos,"surveywin","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=280");
}

function handle_select(select_obj)
{
	var URL = select_obj.options[select_obj.selectedIndex].value;
	if(URL == '') {
		return;
	}
	else {
		self.open(URL,"_blank");
		return;
	}
}


