


function urlParam(name, val){
	this.name=name;
	this.val=val;
}

function url() {
	
}


//generic class for form field handling and validation


function pnlightURL( mod, pg ,func ,opt, params) {

this.baseURL="ajax.php?";

this.parameterString='';

for(var index=0; index<params.length; index++) {
	this.parameterString=this.parameterString+'&'+params[index].name+'='+params[index].val;
} 

this.url = this.baseURL
	+"mod="+ mod
	+"&pg="+ 	pg
	+"&func="+ 	func 
	+"&option="+ opt 
;

//alert(this.url)

}



function getRequestObject (){
	 
  var xmlHttp;
  
  try
    {    
    	
    // Firefox, Opera 8.0+, Safari   
    xmlHttp=new XMLHttpRequest();    
    
    }
  catch (e)
    	{    // Internet Explorer    
    		try
      		{      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      }
    		catch (e)
      			{      
		      	try
		        {        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        }
		      	catch (e)
		        {        alert("Your browser does not support AJAX!");        
		        			return false;        
		        			}      
		        			}    
		        			}  
		        			
	return xmlHttp;
}
