
function submitenter(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode
	if(charCode == "13"){
		document.form1.submit();
	}
} 

function showDiv(id) {
   document.getElementById(id).style.display='block';
}

function hideDiv(id){
    document.getElementById(id).style.display='none';
}

function showHideDiv(id) {
 if (document.getElementById(id).style.display=='none') {
  document.getElementById(id).style.display='block';
 }
 else {
  document.getElementById(id).style.display='none';
 }
}

function delInputValue(id){
   var das = document.getElementById(id);
       das.value="";
}

function GetRandom( min, max ) {
	if( min > max ) {
		return( -1 );
	}
	if( min == max ) {
		return( min );
	}
 
  return( min + parseInt( Math.random() * ( max-min+1 ) ) );
}

function popUnder(){
    var url='http://ad.adsone.de/d2/?id=jomabe_an_an_pu';

    popunder = window.open(url,'popunder', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
    popunder.blur();
}

function popUnder1(){
    var url='http://ad.adsone.de/o2/?id=jomabe_an_an_pu';

    popunder = window.open(url,'popunder', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
    popunder.blur();
}

function popUnder2(){
    var url='http://www.kido.to/';

    popunder = window.open(url,'popunder', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
    popunder.blur();
}

function jsOpenhWnd(u){
  p="toolbar=no,height=600px,width=800px,directories=no,status=no,scrollbars=yes,resizable=no,menubar=no";
  hWnd=window.open(u,"Hwnd",p);
  hWnd.focus();
}



