function getHostName(){
	var strHost = document.location.href;
	strHost = strHost.substring( strHost.indexOf("://") +3, strHost.length );
	strHost = strHost.substring( 0, strHost.indexOf("/") );
	return strHost ;
}
function useSSL(){
	var notSSLServer = new Array(
			"localhost",
			"127.0.0.1"
		);

	var reqHdrHost = document.location.hostname; //getHostName() ;
	for (var i=0; i<notSSLServer.length ; i++ )
	{
		if( reqHdrHost == notSSLServer[i] ){
			return false ;
		}
	}
	return true ;
}

