/*skiregio.js*/
var xmlhttp;
function webcam(str){
xmlhttp=getxml();
if(xmlhttp==null){
alert("No Browser Support");
return;
}
var url="../webcam.php";
url=url+"?id="+str;
url=url+"&s="+Math.random();
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function getxml(){
if(window.XMLHttpRequest){
return new XMLHttpRequest();
}
if(window.ActiveXObject){
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
function showIt(loc,stat,pic) {
if (stat==0) {
document.getElementById(loc).src="pics/"+pic+"01.gif";
} else {
document.getElementById(loc).src="pics/"+pic+"2.gif";
}
document.getElementById(loc).width="16";
document.getElementById(loc).height="16";
}
function hideIt(loc,stat,pic) {
if (stat==0) {
document.getElementById(loc).src="pics/"+pic+"0.gif";
} else {
document.getElementById(loc).src="pics/"+pic+"1.gif";
}
document.getElementById(loc).width="16";
document.getElementById(loc).height="16";
}
function chkInput(lang) {
if(document.comment.name.value == ""){
if (lang=="fr") {alert("Veuillez indiquer votre nom.");document.comment.name.focus();return false;
} else {alert("Geben Sie Ihren Namen ein.");document.comment.name.focus();return false;}
}
if(document.comment.message.value == ""){
if (lang=="fr") {alert("Veuillez indiquer votre message.");document.comment.message.focus();return false;
} else {alert("Geben Sie Ihre Nachricht ein.");document.comment.message.focus();return false;}
}
}

