    function gurl(d) {
        document.location.href="http://www.netsarius.com"+d; return false;
    }


	function openWindow(winname, url, width, height, tbar, sbar, resize){
		var options = "toolbar="+"tbar"+",scrollbars="+sbar+",resizable="+resize+",width="+width+",height="+height;

		var newWind = window.open(url, winname, options);
		newWind.focus();

		if (newWind.opener == null) {
			newWind.opener = window; 			
		}						
	}
	
	function openWindowSpecial(winname, url, width, height, tbar, sbar, resize){
		var options = "left=0;top=3;toolbar="+"tbar"+",scrollbars="+sbar+",resizable="+resize+",width="+width+",height="+height;
	   
		var newWind = window.open(url, winname, options);
		newWind.focus();

		if (newWind.opener == null) {
			newWind.opener = window; 			
		}						
	}

	function openPrintWin(winname, url) {
            //url = escape(url);
	    openWindow(winname, url, 650, 650, 'yes','yes','yes');
	}
	
	function popupBig(url) {
		 var width  = 1000;
		 var height = 800;
		 var left   = (screen.width  - width)/2;
		 var top    = (screen.height - height)/2;
		 var params = 'width='+width+', height='+height;
		 params += ', top='+top+', left='+left;
		 params += ', directories=yes';
		 params += ', location=yes';
		 params += ', menubar=yes';
		 params += ', resizable=yes';
		 params += ', scrollbars=yes';
		 params += ', status=no';
		 params += ', toolbar=yes';
		 newwin=window.open(url,'portfolio', params);
		 if (window.focus) {newwin.focus()}
		 return false;
	}

	
	function openGalleryWin(winname, url) {
            //url = escape(url);
	    openWindow(winname, url, 1000, 600, 'yes','yes','yes');
	}
	
	function openDomainWin(winname, url) {
            //url = escape(url);
	    openWindow(winname, url, 600, 300, 'yes','yes','yes');
	}
	
	function placeOrder(servicetype, pktype) {
		//alert('ok');
		//window.location.href = 'order.php?prodtype='+servicetype+'&pktype='+pktype;
		window.location.replace('order.php?prodtype='+servicetype+'&pktype='+pktype);

	}