// JavaScript Documentvar popUpWin=0;
var popUpWin=0;
function popUpWindow(URLStr, width, height){
	var left, top;
	left=(screen.width/2)-(width/2);
	top=(screen.height/2)-(height/2);
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function SubmitInquiry(){
	var cnt=0;
	if(document.form1.txtName.value==""){cnt=cnt+1;}
	if(document.form1.txtEmail.value==""){cnt=cnt+1;}
	if(document.form1.txtCountry.value==""){cnt=cnt+1;}
	if(document.form1.txtMsg.value==""){cnt=cnt+1;}
	if(cnt==0){
		if(isEmail(document.form1.txtEmail.value)){
			document.form1.submit();
		}else{
			alert("Incorrect email format");	
		}
	}else{
		alert("Please fill * marked fields");	
	}
	
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}

function expandContent(thistag, tag) {
   styleObj=document.getElementById(thistag).style;
   if (styleObj.display=='none'){
   	styleObj.display='';
	//tag.innerHTML = "[-]";
   }
   else {
   	styleObj.display='none';
    //tag.innerHTML = "[+]";
   }
}