//show
function show(foto)
{
window.open(foto,'foto','scrollbars=yes,resizable=no,width=640,height=450,top=10,left=10');
}
//end_show

// link
function link(url,winwidth,winheight)
{
newWindow=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=10,left=10,width='+winwidth+',height='+winheight)
}

// link
function link2(url,winwidth,winheight)
{
newWindow=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,top=10,left=10,width='+winwidth+',height='+winheight)
}


//frame protection
if(top.location!=self.location){top.location.href=self.location}

//Status bar focus
window.status="Meander Travel..";

//form handler
function formHandler(){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}


// menu script
var turntosingle=0
var disabletablinks=0

var previoustab=""
if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')
function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById){
highlighttab(aobject)
if (turntosingle==0){
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
}
}
}
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
}
function collecttablinks(){
var tabobj=document.getElementById("tablist")
tabobjlinks=tabobj.getElementsByTagName("A")
}
function do_onload(){
collecttablinks()
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}
if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

// ----- sag_click -----
/*
if (window.Event)
  document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}
function norightclick(e)
{
	if (window.Event)
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
	else
		if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
*/

// email control

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
 
function checkmail(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
alert("Please enter a valid email address.")
e.select()
}
return returnval
}

