function PopUp(varFilename, intLeft, intTop, intWidth, intHeight, binScroll) {

     winParams = " toolbar=no"         // Icon bar
               + ",location=no"      // Location bar
               + ",directories=no"   //
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars="+binScroll   //Displays scrollbars is document is larger than window.
               + ",titlebar=no"     //Enable/Disable titlebar resize capability.
               + ",left="+intLeft             //Offset of windows left edge from screen.
               + ",top="+intTop              //Offset of windows top edge from screen.
               + ",width="+intWidth    //Standard 640,800/788, 800/788
               + ",height="+intHeight  //Standard 480,600/541, 600/566
               + ";"

		 winURL = ""+ varFilename;

 		 		 var popwin;
				 popWindow = window.open(winURL,popwin,winParams)
}

function PopUpGlobal(varFilename, varTitle, intLeft, intTop, intWidth, intHeight, binScroll) {

     winParams = " toolbar=no"         // Icon bar
               + ",location=no"      // Location bar
               + ",directories=no"   //
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars="+binScroll   //Displays scrollbars is document is larger than window.
               + ",titlebar=no"     //Enable/Disable titlebar resize capability.
               + ",left="+intLeft             //Offset of windows left edge from screen.
               + ",top="+intTop              //Offset of windows top edge from screen.
               + ",width="+intWidth    //Standard 640,800/788, 800/788
               + ",height="+intHeight  //Standard 480,600/541, 600/566
               + ";"

		 winURL = "virtualtour/"+ varFilename;
			alert (Filename);

 		 		 var popwin;
				 popWindow = window.open(winURL,popwin,winParams)
}


// photogallery//

var nwind="";
function nw(u,w,h) {
	if (nwind.name == null)
{
wind = window.open(u,"ShowWindow",'width='+w+',height='+h+',toolbar=no,menubar=no,location=(0,0),directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no');
}

else {
	wind.focus() }

		}

                function frmsubmit()
                {
                    flag=Validateme();
                    if(flag)
                    {
                    this.action="/media/subscribe.asp"
                    this.method = "post"
                    this.submit();
                    }
                }
                function Validateme(){
 	              if(document.getElementById('txtSubscriberName').value=="")
                    {
                    alert("Please enter your name!");
                    document.getElementById('txtSubscriberName').focus();
                    return false;
                    }
	               if(document.getElementById('txtSubscriberName').value=="" || document.getElementById('txtSubscriberName').value.search("@")==-1)
                    {
                    alert("Please enter a valid E-mail Address!");
                    document.getElementById('txtSubscriberName').focus();
                    return false;
                    }
                    if(document.getElementById('txtSubscriberName').value=="")
                    {
                    alert("Please enter Country name!");
                    document.getElementById('txtSubscriberName').focus();
                    return false;
                    }
                return true;
                }
            

//photogalleryend