function popit(sPicURL) { window.open("js/popit.htm?"+sPicURL, "", "resizable=1,height=200,width=200"); } PositionX = 100; PositionY = 100; defaultWidth = 413; defaultHeight = 413; var AutoClose = true; if (parseInt(navigator.appVersion.charAt(0))>=4){ var isNN=(navigator.appName=="Netscape")?1:0; var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;} var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY; var optIE='scrollbars=no,width=400,height=300,left='+PositionX+',top='+PositionY; function popImage(imageURL,imageTitle){ if (isNN){imgWin=window.open('about:blank','',optNN);} if (isIE){imgWin=window.open('about:blank','',optIE);} with (imgWin.document){ writeln('Please wait while loading...');writeln(''); writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);'); writeln('width=120-(document.body.clientWidth-document.images[0].width);'); writeln('height=100-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln(''); if (!AutoClose) writeln('') else writeln(''); writeln(''); close(); }} function popup_window(theURL,winName,features) { window.open(theURL,winName,features); } function update_child( p_parent_option ) { // create new script element and set its relative URL (including ID argument) script = document.createElement( 'script' ); script.src = 'external.php?parent_id=' + p_parent_option.value; // attach (load) script element to document head document.getElementsByTagName( 'head' )[0].appendChild( script ); } function move_in(img_name,img_src) { document[img_name].src=img_src; } function move_out(img_name,img_src) { document[img_name].src=img_src; } function validate_form ( ) { if(!document.TopsElite_Enquiry_Form.Name.value){alert("Please enter your Name"); return false; } if(!document.TopsElite_Enquiry_Form.Email.value){alert("Please enter your Email"); return false; } if(!document.TopsElite_Enquiry_Form.Phone.value){alert("Please enter your Phone number"); return false; } return true; }