	function show(object) 
	{

	if (object=="nicosia")
	{						
	document.searchcyprusmap.src="imgs/nicosia_map.jpg"
	}
	else
	if (object=="paphos")
	{						
	document.searchcyprusmap.src="imgs/Pafos_Map.jpg"
	}
	else
	if (object=="limassol")
	{						
	document.searchcyprusmap.src="imgs/Limassol_Map.jpg"
	}
	else
	if (object=="larnaca")
	{						
	document.searchcyprusmap.src="imgs/larnaca_map.jpg"
	}
	else
	if (object=="famagusta")
	{						
	document.searchcyprusmap.src="imgs/famagusta_map.jpg"
	}
	else
	if (object=="cyprus")
	{						
	document.searchcyprusmap.src="imgs/cyprusmap.jpg"
	}
	}
	function getFile(href)
	{
	window.open(href);
	return false;
	}

	function HideLoading()
	{
	Loading1 = document.getElementById("Loading");				
	Loading1.style.visibility="hidden";
	}

	function setSelectedArticle(task)
	{
	box = document.getElementById("taskID");
	//Loading1 = document.getElementById("Loading");						
	if((box != null) && clicked != true)
	{
		box.value = task;
		box.focus();
		box.blur();
		//Loading1.style.visibility="visible";
		__doPostBack('taskID','')
		
	}
	}

	function openPopUp(strHREF)
	{
		window.open(strHREF,"externalwindow","height=450,width=610,resizable =yes,status=yes,toolbar=yes,menubar=yes,location=yes")
	}

	//for Netscape
	if (document.layers)
		{//window.onscroll=sizeIframe
	}
	else //for IE 
	if (document.all)
		{//window.onscroll=sizeIframe
	}

	function OpenMetric()
	{
	window.open('http://www.artoestate.com/MetricConverter.aspx', ['Metric_Calculator'], ['status=no, scrollbars=no, width=400, height=270, resizable=yes']);
	}
	function OpenCurrency()
	{
	window.open('http://www.xe.com/ucc/');
	}	
		
	function adjustIFrameSize (iframeWindow) 
	{
	if (iframeWindow.document.height) 
	{
		var iframeElement = parent.document.getElementById(iframeWindow.name);
		iframeElement.style.height = iframeWindow.document.height + 'px';
		iframeElement.style.width = iframeWindow.document.width + 'px';
	}
	else 
	if (document.all) 
	{
		var iframeElement = parent.document.all[iframeWindow.name];
		if (iframeWindow.document.compatMode &&	iframeWindow.document.compatMode != 'BackCompat') 
		{
		iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
		iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
		}
		else 
		{
		iframeElement.style.height =iframeWindow.document.body.scrollHeight + 5 + 'px';
		iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
		}
		}
	}

	function screen_width ()
	{
	// CHECK IF v4+ BROWSER (MICROSOFT OR NETSCAPE)
	if ( window.screen ) {
	return ( screen.width );

	// ELSE CHECK IF JAVA ENABLED BROWSER (NS2, NS3, IE3, etc.)
	} else if ( navigator.javaEnabled () ) {
	var toolkit = java.awt.Toolkit.getDefaultToolkit ();
	var screen_size = toolkit.getScreenSize ();       
	return ( screen_size.width );

	// OTHERWISE THERE IS NO WAY TO CHECK
	} else {
	return (0);
	}
	}

	function screen_height ()
	{
	// CHECK IF v4+ BROWSER (MICROSOFT OR NETSCAPE)
	if ( window.screen ) {
	return ( screen.height );

	// ELSE CHECK IF JAVA ENABLED BROWSER (NS2, NS3, IE3, etc.)
	} else if ( navigator.javaEnabled () ) {
	var toolkit = java.awt.Toolkit.getDefaultToolkit ();
	var screen_size = toolkit.getScreenSize ();       
	return ( screen_size.height );

	// OTHERWISE THERE IS NO WAY TO CHECK
	} else {
	return (0);
	}
	}

	function myscreen (iframe1)
	{
	objControl = document.getElementById(iframe1);
	if(objControl != null)
		{
			objControl.src = "savescreen.aspx";
		}
		else 
		{
			window.setTimeout(screen ('iframescreen'), 100);
		}
	}						
			
	function sizeIframe()
	{
	winHeight = document.body.clientHeight;
	winWidth = document.body.clientWidth;
	winHeight = winHeight - 71;
	//winHeight = winHeight - 40;
	//document.write(winHeight);
	if (winHeight > 0)
	{
		//document.all.content.style.height = winHeight;

		if(document.layers)
		{  
					document.layer1.top = winHeight+document.body.scrollTop ;
		document.layer2.top = winHeight+document.body.scrollTop+46 ;
		}

		
		if(document.all!=null)
		{
		
		layer1.style.top = winHeight+document.body.scrollTop ;	
		layer2.style.top = winHeight+document.body.scrollTop+46 ;

		if (winWidth<760)
		{
		layer1.style.width=760;
		layer2.style.width=760;
		}
		else
		{
		layer1.style.width=winWidth;
		layer2.style.width=winWidth;
		}

		}


	}// winheight>0
	}