function jumpto(x) {
	parent.window.scrollTo(0,x)
}

function forgotPassword()
{
		var load = window.open('https://www.deliverywatch.net/sendPassword.do?lang=en','','scrollbars=no,menubar=no,height=300,width=300,resizable=yes,toolbar=no,location=no,status=no');
}

function popup(url, name, width, height)
{
	fenster = window.open(url, name, 'toolbar=0,status=0,location=0,scrollbars=1,menubar=0,width='+width+',height='+height);
	fenster.focus();
}

// element_id
function showHide(name) {  
        var e = document.getElementById(name);
        e.style.display = (e.style.display == '') ? 'none' : '';
}

// img_id, string, string
function swapImg(img,openImg,closeImg) { 
	var i = document.getElementById(img);
	i.src = (i.src.indexOf(closeImg)>-1) ? openImg : closeImg;
}

function close(region_id) { 
	var close = document.getElementById(region_id);
	close.style.display = 'none';
}

function onEnterSubmit(event, form_id) {
  	if (window.event && window.event.keyCode == 13)
	{
		document.getElementById(form_id).submit();
		return false;
	}
	if(event.which == 13)
	{
		document.getElementById(form_id).submit();	
		return false;
	}
 	return true;
}

function opwin(theURL) { 
	ppWin = window.open(theURL, "Delivery Watch - Videotutorials", "menubar=0,locationbar=0, status=0,scrollbars=0,resizable=0,width=800,height=510");
	ppWin.focus();
}

