//  (c) Kusiss Internet Services
//       http://www.kusiss.net
//      -----------------------

//show
function show(foto)
{
window.open(foto,'foto','scrollbars=yes,resizable=no,width=640,height=450,top=10,left=10');
}
//end_show

//show
function pic(foto)
{
window.open(foto,'foto','scrollbars=yes,resizable=yes,toolbar=yes,width=750,height=500,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)
}

// link2
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)
}

// Popxe(url)
function popxe(url) 
{
window.open(url,"url","width=700,height=500,resizable=0,menubar=0,status=0,scrollbars=1");
}
// end -->

//frame protection
if(top.location!=self.location){top.location.href=self.location}

//Status bar focus
window.status="Kusadasi City Guide..";




// ----- 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
}


