function transformurl()
{
	var args = new Object(); 
	var query = location.search.substring(1); 

	var strTemp=query.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
	    	strTemp = strTemp.replace("'","''");
    		strTemp = strTemp.replace("select","");
		strTemp = strTemp.replace("insert","");
		strTemp = strTemp.replace("update","");
		strTemp = strTemp.replace("delete","");
		strTemp = strTemp.replace("having","");
		strTemp = strTemp.replace("where","");
		strTemp = strTemp.replace("from","");
		strTemp = strTemp.replace("group","");
		strTemp = strTemp.replace("create","");
	
   

	var url = window.location + " " ;
	//url 
	//var mystring = 'hello?';
	//alert('url ' + url);
	//looks for ? qualifier for query strings

	var intpos = url.search(/\?/);
	if(intpos != -1) 
	{ 

	//copies string value from the begnning of  the string to before the question mark, cutting all references to query //string values.

	//var newurl = url.slice(0,intpos) + '?' + strTemp;
	var newurl = url.slice(0,intpos); 
       	

	//assigning the current url to only make requests without query strings.
	//this protects hackers from trying to append javascript or any other types of scripts to attack web pages.
	window.location = newurl;

	}

}


