// message display module -- by Harun Biswas, Copyright(c) UltraSoft Technologies Ltd.

//web root an dother stuff
//var root_url="http://www.ultrasoft-tech.co.uk/";
//var root_url="http://usthq/ustweb/";
//var root_url="http://www.ust-direct.com/";
//var root_url="http://www.ultrasoft-tech.co.uk/ustweb/";
//var root_url="http://localhost/ust.co.uk/";
//var root_url="http://www.ust.ukgiftbaskets.co.uk/ust-direct/";

var sLF = String.fromCharCode(10); 
var chr34=String.fromCharCode(34); 
var tdH=14;  //table data height
var tdHh=18; //table data height
var tdHb=5;  //table blank data height

var bp_red_only="<img border=0 src="+chr34+root_url+"images/bullet_red_only.gif"+chr34+">"; //red bullet
var bp_blu_only="<img border=0 src="+chr34+root_url+"images/bullet_yellow_only.gif"+chr34+">"; //blue bullet

var bgi_mm_selected=root_url+"images/nav/bg_mm_selected.JPG"

//global var
var HTMLStr="";


function DisplaySysBenefits(cPage)
{
    if (cPage==1) {
    //write award details
    DrawAwardDetails();
    
    
    DrawTableStartTag();
        
	DrawAHeaderCell("UltraSoft Systems:"); 
	DrawABulletPointR("Increase efficiency."); 
	DrawABulletPointR("Save time &amp; money."); 
	DrawABulletPointR("Streamline process."); 
	DrawABulletPointR("Automate work force."); 
	
	DrawABlankCellColored();

	DrawABulletPointB("Simple to use."); 
	DrawABulletPointB("Deploy in days."); 
	DrawABulletPointB("Total ownership.");
	DrawABulletPointB("Fast RoI."); 
	//DrawABulletPointB("Zero support cost."); 

	DrawABlankCellWhite();

	DrawTableEndTag();
	document.write(HTMLStr);
    }    
}

function DrawAwardDetails()
{
    DrawTableStartTag();
    HTMLStr+='<tr><td align="center"><img border="0" src="'+root_url+'images/awards/bca_award_logo_2007.jpg" width="150" height="91"> </td>'+sLF;
	HTMLStr+='<tr><td align="center" height=10></td>'+sLF;
	
	DrawTableEndTag();
	document.write(HTMLStr);

}

function DisplayBreakingNews(cPage)
{
    if (cPage==1) {
        DrawTableStartTag();
        
	DrawAHeaderCellBN("News:"); 

	DrawANewsLink("Basepoint deploys UltraSoft System to automate sales, licence generation, billing and management reporting."); 
	DrawABlankCellColoredBN();

	DrawANewsLink("The OfficeLinks deploys UltraSoft System to automate sales, licence generation, billing and management reporting."); 
	//DrawANewsLink("DIFC global deploys UltraSoft System for its global operation of Business Centres."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("OREGA opts for UltraSoft System to automate sales, licence generation, billing and management reporting."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("MWB deploys UltraSoft Systems to automate licence agreement generation, billing and management reporting."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("Kingshott replaces CC with UltraSoft System to automate sales process, licence generation, billing and reporting."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("Avanta replaces CC with UltraSoft System to automate sales process, licence generation, billing and reporting."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("Kestrel Court replaces CC with UltraSoft System to automate sales process, licence generation, billing and reporting."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("UniS - Research Park opts for UltraSoft DMS to improve business process."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("Lorien Engineering Solutions improve business process by deploying UltraSoft Systems (DMS, TMS, CRM & EMM)."); 

	DrawABlankCellColoredBN();
	DrawANewsLink("D V Automation deploys UltraSoft DMS & TMS to streamline and automate their business process."); 

	//DrawABlankCellColoredBN();
	//DrawANewsLink("Klaus Kobec deploys UltraSoft SOP to automate sales, order processing and stock control."); 


    //    DrawABlankCellColoredBN();
	//DrawANewsLink("Regus plc - UltraSoft Umbrella solution has actually exceeded all expectations.");

	DrawTableEndTag();
	document.write(HTMLStr);
    }    
}

function DrawTableStartTag() 
{
 	HTMLStr="<table  border=0 cellpadding=0 cellspacing=0 width=155>"+sLF;
	   
}

function DrawTableEndTag() 
{
 	
	HTMLStr+="</table>"+sLF;   
}

//UltraSoft Products:

function DrawAHeaderCell(sText) 
{
 	HTMLStr+="<tr><td align='left' class='advertheading' valign='middle' width=155" +" background="+bgi_mm_selected +" Height="+tdHh+">&nbsp;"+sText+"</td></tr>"+sLF; 
}

function DrawABulletPointB(sText) 
{
 	HTMLStr+="<tr><td class='advertpoint' width=100% height="+tdH+">&nbsp;&nbsp;"+bp_blu_only+"&nbsp;"+sText+"</td></tr>"+sLF;
}

function DrawABulletPointR(sText) 
{
 	HTMLStr+="<tr><td class='advertpoint' width=100% height="+tdH+">&nbsp;&nbsp;"+bp_red_only+"&nbsp;"+sText+"</td></tr>"+sLF;
}


function DrawABlankCellColored() 
{
 	HTMLStr+="<tr><td class='advertpoint' width=100% height="+tdHb+">&nbsp; </td></tr>"+sLF;  
}

function DrawABlankCellWhite() 
{
 	HTMLStr+="<tr><td width=100% height="+tdH+">&nbsp; </td></tr>"+sLF;  
}

//breaking news functions
function DrawAHeaderCellBN(sText) 
{
 	HTMLStr+="<tr><td colspan=2 align='left' class='advertheading' valign='middle' width=155 Height="+tdHh +" background="+bgi_mm_selected +">&nbsp;"+sText+"</td></tr>"+sLF; 
}

function DrawABlankCellWhiteBN() 
{
 	HTMLStr+="<tr><td colspan=2 width=100% height="+tdH+">&nbsp; </td></tr>"+sLF;  
}
function DrawABlankCellColoredBN() 
{
 	HTMLStr+="<tr><td colspan=2 class='advertpoint' width=100% height="+tdHb+">&nbsp; </td></tr>"+sLF;  
}

function DrawANewsLink(sText) 
{
 	HTMLStr+="<tr><td class='advertpoint' valign='top' align='middle' width=5 height="+tdH+"></td>"+sLF;
 	HTMLStr+="<td class='advertpoint' valign='top' align='left' width=150 height="+tdH+">"+bp_red_only+"&nbsp;"+sText+"</td></tr>"+sLF;
}




    
    
    



