
function _SysLnk( url, src ) {
	this.url = new String( url );
	this.src = new String( src );
	return true;
}

var	dayName = new Array();
	dayName[ dayName.length ] = 'Sunday';
	dayName[ dayName.length ] = 'Monday';
	dayName[ dayName.length ] = 'Tuesday';
	dayName[ dayName.length ] = 'Wednesday';
	dayName[ dayName.length ] = 'Thursday';
	dayName[ dayName.length ] = 'Friday';
	dayName[ dayName.length ] = 'Saturday';

var	monthName = new Array();
	monthName[ monthName.length ] = 'January';
	monthName[ monthName.length ] = 'February';
	monthName[ monthName.length ] = 'March';
	monthName[ monthName.length ] = 'April';
	monthName[ monthName.length ] = 'May';
	monthName[ monthName.length ] = 'June';
	monthName[ monthName.length ] = 'July';
	monthName[ monthName.length ] = 'August';
	monthName[ monthName.length ] = 'September';
	monthName[ monthName.length ] = 'October';
	monthName[ monthName.length ] = 'November';
	monthName[ monthName.length ] = 'December';

var	__promo = new Array();
	__promo[ __promo.length ] = new _SysLnk( 'http://www.mozilla.com/en-US/firefox/'	, '../Promo/firefox.jpg'	);
	__promo[ __promo.length ] = new _SysLnk( 'http://www.slackware.com/'			, '../Promo/slackware.jpg'	);
	__promo[ __promo.length ] = new _SysLnk( 'http://www.netbsd.org/'			, '../Promo/netbsd.jpg'		);

var	__banner_db = new Array();
	__banner_db[ __banner_db.length ] = '    Would you like to know what files were created, modified or accessed? Would you like to know if a file\'s size has changed? Would you like to know if a file or folder was removed or if new ones have been added to your system? Yes? Then why not try HDD-Profiler!';
	__banner_db[ __banner_db.length ] = '    Hey buddy... Are you having a bad time selecting a password for your e-mail box or encryption program? Would you like a little help? We\'ve got just what you need? EKG!';
	__banner_db[ __banner_db.length ] = '    Traces? Junk? Local spam? or ?! Are you tired of having to manually remove unnecessary files? Are you looking for a way to automatically remove stuff from your hard-disk-drive? Yes? Then why don\'t you try Shaft, it\'s simple, powerful and it will assist you in cleaning up your system, just tell it what and where to clean-up and you\'re done.';
	__banner_db[ __banner_db.length ] = '    Where did I put that file? Man, where the heck is it? ... Are you having trouble finding files? Are your brothers, sisters or friends tempering with your files and keep on moving them around? Yes? Then have no fear HDD-Researcher is here! This little search engine will help you find your files quickly. You name it, he\'ll find it!';
	__banner_db[ __banner_db.length ] = '    Are you looking for a way to dynamically write some information onto a web page using JavaScript? Are you looking for a way to create a C/C++/Java/JavaScript character array literal from a text based file? Yes? Then why not use JSweep, it will do this quickly!';
	__banner_db[ __banner_db.length ] = '    Are you looking for a way to port your source code onto a web page? Have you ever tried this but found that it doesn\'t quite look as you\'ve expected? Yes? Well, that\'s because you forgot to convert it from simple~text to hyper~text! Our little WebSweep is an HTML converter which will transform your files in web_pages/web_code in less than a second.';
	__banner_db[ __banner_db.length ] = '    Are you having trouble with big files that don\'t fit on your floppy disk? Are you looking for a way to split a file into smaller parts? Yes? Then look no more as DrCutter does this successfully in a split second and it will generate fragments as small as you want!!';
	__banner_db[ __banner_db.length ] = '    Are you looking for a way to rename one or more files? Would you like to index, capitalize or retain only part of a file\'s name? Yeah? Then why don\'t you try ReNameIt? It will allow you to rename one or more files in any way you like.';
	__banner_db[ __banner_db.length ] = '    Are you looking for a way to eliminate recently deleted files? Are you looking for a way to cover your tracks? We have just what you need ... NoTrace!!!';
	__banner_db[ __banner_db.length ] = '    Are you looking for a way to prevent applications from starting everytime you boot your machine? Would you like to clean your system start-up locations? Yeah? Then try RegStart [...] This little tool does it all!';

var banner_string = __banner_db[ parseInt( Math.random() * __banner_db.length ) ];
var __iter = -1;

function ShowStatusBarInfo() {
	if ( ++__iter > banner_string.length ) {
		banner_string = __banner_db[ parseInt( Math.random() * __banner_db.length ) ];
		__iter = 0;
	}
	window.status = 'News >> ' + banner_string.substring( __iter, banner_string.length );
}

function OnPageLoad() {
	window.setInterval( ShowStatusBarInfo, 200 );
}

function __getYear( __date ) {
	var __tmp = __date.getYear();		// get the year
	if ( __tmp < 1000 ) { __tmp += 1900; }	// fix the bug
	return __tmp;
}

function GetTimeStamp( __date ) {
	var __stamp = '';
	__stamp += dayName[ __date.getDay() ] + ', ';		// get the day
	__stamp += monthName[ __date.getMonth() ] + ' ';	// get the month
	__stamp += __date.getDate() + ', ';			// get the date
	__stamp += __getYear( __date );				// get the year
	return __stamp;
}

function ShowMyAge() {
	document.write( __getYear( new Date() ) - 1980 );
}

function OnPagePreLoad() {
	if ( top.location != self.location ) { top.location = self.location; }
}

function SetBufferZone() {
	document.write( '<br /><br />\n' );
}

function ShowLogo() {
	document.write( '<table align=\"center\" class=\"dylo\">\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td style=\"text-align:left;vertical-align:top\" class=\"dylo\" rowspan=\"2\">\n' );
	document.write( '\t\t\t<img src=\"../Images/spacer.gif\" width=\"2\" height=\"45\" alt=\"\" />\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t\t<td style=\"text-align:right;vertical-align:top\" class=\"dylo\">\n' );
	document.write( '\t\t\t&nbsp;<b class=\"lvl3\">' + GetTimeStamp( new Date() ) + '</b>&nbsp;\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td style=\"text-align:right;vertical-align:bottom\" class=\"dylo\">\n' );
	document.write( '\t\t\t&nbsp;<a class=\"bright_small\" href=\"AboutUs.html\">About&nbsp;Us</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"ContactUs.html\">Contact&nbsp;Us</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"Services.html\">Services</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"Software.html\">Software</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"Downloads.html\">Downloads</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"CSDN.html\">CSDN</a>&nbsp;-&nbsp;<a class=\"bright_small\" target=\"_blank\" href=\"http://groups.yahoo.com/group/classicmanpro\">Workgroup</a>&nbsp;-&nbsp;<a class=\"bright_small\" href=\"Links.html\">Links</a>&nbsp;\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '</table>\n' );
}

function ShowTopInfo() {
	document.write( '<table align=\"center\" class=\"ispace\">\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"ispace\">\n' );
	document.write( '\t\t\t<img src=\"../Images/spacer.gif\" width=\"2\" height=\"10\" alt=\"\" />\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '</table>\n' );
}

function ShowUpperMenu() {
	var _lnk = __promo[ parseInt( Math.random() * __promo.length ) ];
	document.write( '<table align=\"center\" style=\"width:755\" class=\"sh\">\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td style=\"padding:0pt\" class=\"tsh_lemi\">\n' );
	document.write( '\t\t\t<a class=\"light_big\" target=\"_blank\" href=\"' + _lnk.url + '\"><img src=\"' + _lnk.src + '\" width=\"744\" height=\"45\" style=\"border:0pt;margin:2pt\" alt=\"\" /></a>\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '</table>\n' );
}

function ShowLowerMenu( lastDate ) {
	document.write( '<table align=\"center\" style=\"width:100%\" class=\"sh\">\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_cemi\">&nbsp;<a class=\"light_big\" href=\"AboutUs.html\">About&nbsp;Us</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"ContactUs.html\">Contact&nbsp;Us</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"Services.html\">Services</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"Software.html\">Software</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"Downloads.html\">Downloads</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"CSDN.html\">CSDN</a>&nbsp;-&nbsp;<a class=\"light_big\" target=\"_blank\" href=\"http://groups.yahoo.com/group/classicmanpro\">Workgroup</a>&nbsp;-&nbsp;<a class=\"light_big\" href=\"Links.html\">Links</a>&nbsp;</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_lemi\"><b class=\"lvl3\">Company Info</b> - Classic Software&reg; is a non-profit virtual company specialized in freeware development offering solutions ranging from simple desktop utilities and powerful security tools to open-source projects, programming resources and source code snippets. Visit <a class=\"light_big\" href=\"CSDN.html\">CSDN</a>!</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_lemi\"><b class=\"lvl3\">Customer Support</b> - <a class=\"light_big\" target=\"_blank\" href=\"http://groups.yahoo.com/group/classicmanpro\">Visit</a> Classic Software&#39;s developer workgroup on <a class=\"light_big\" target=\"_blank\" href=\"http://groups.yahoo.com\">Yahoo! Groups</a> ... Post comments and suggestions, interact with other customers and let us know what can we do to make your cyber~life easier. If you&#39;re a software developer in need of assistance or a business man looking for a custom made application don&#39;t hesitate to <a class=\"light_big\" target=\"_blank\" href=\"http://groups.yahoo.com/group/classicmanpro/join\">join our workgroup</a>. You can also find us on the Yahoo Network. Our Yahoo Messenger ID is &ldquo;<b class=\"lvl3\">classicmanpro</b>&rdquo; &raquo;&nbsp;&raquo;&nbsp;&raquo; ( <a href=\"http://edit.yahoo.com/config/send_webmesg?.target=classicmanpro&.src=pg\" title=\"Turea Alexandru Teodor ( classicmanpro )\"><img border=\"0\" src=\"http://opi.yahoo.com/online?u=classicmanpro&m=g&t=0\" alt=\"Turea Alexandru Teodor ( classicmanpro )\" /></a> )</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_cemi\">\n' );
	document.write( '\t\t\t<form method=\"get\" action=\"http://groups.yahoo.com/subscribe/classicmanpro\" target=\"_blank\" style=\"display:inline\">\n' );
	document.write( '\t\t\t\t<input type=\"text\" name=\"user\" id=\"user\" value=\" Workgroup subscription, to join please enter your email address here... \" size=\"75\" class=\"txt\" onfocus=\"this.focus();this.select()\">\n' );
	document.write( '\t\t\t\t<input type=\"submit\" value=\"Subscribe\" class=\"btn\">\n' );
	document.write( '\t\t\t</form>\n' );
	document.write( '\t\t</td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_lemi\"><b class=\"lvl3\">Update Info</b> - This page was last updated <b class=\"lvl3\">' + lastDate + '</b>. For suggestions and comments related to this site or our products please contact us at <a class=\"light_big\" target=\"_blank\" href=\"mailto:classicmanpro@yahoo.com\">classicmanpro@yahoo.com</a></td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '\t<tr>\n' );
	document.write( '\t\t<td class=\"tsh_cemi\"><b class=\"lvl3\">&nbsp;Copyright &copy; 2002-' + __getYear( new Date() ) + ' Classic Software&reg;. All rights reserved.&nbsp;</b></td>\n' );
	document.write( '\t</tr>\n' );
	document.write( '</table>\n' );
}

function ShowBottomInfo() {
	ShowTopInfo();
}

function GetX( cw ) {
	return ( cw > screen.width ) ? 0 : ( parseInt( ( screen.width / 2 ) - ( cw / 2 ) ) - 5 );
}

function GetY( ch ) {
	return ( ch > screen.height ) ? 0 : ( parseInt( ( screen.height / 2 ) - ( ch / 2 ) ) - 5 );
}

function ShowPicture( url, _id, _title, cw, ch, cx, cy ) {
	hWnd = window.open( '', _id, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=' + cw + ', height=' + ch + ', left=' + cx + ', top=' + cy + ', screenX=' + cx + ', screenY=' + cy );
	hWnd.document.write( '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n' );
	hWnd.document.write( '<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\">\n' );
	hWnd.document.write( '\t<head>\n' );
	hWnd.document.write( '\t\t<title>' + _title + '</title>\n' );
	hWnd.document.write( '\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n' );
	hWnd.document.write( '\t\t<meta name=\"author\" content=\"Turea Alexandru Teodor - classicmanpro@yahoo.com\" />\n' );
	hWnd.document.write( '\t\t<meta name=\"copyright\" content=\"Copyright &copy; Classic Software&reg;. All rights reserved.\" />\n' );
	hWnd.document.write( '\t\t<style type=\"text/css\" media=\"screen\">\n' );
	hWnd.document.write( '\t\t\tbody {\n' );
	hWnd.document.write( '\t\t\t\tbackground-image 	: url( \"' + url + '\" );\n' );
	hWnd.document.write( '\t\t\t\tmargin           	: 1pt;\n' );
	hWnd.document.write( '\t\t\t\tpadding          	: 1pt;\n' );
	hWnd.document.write( '\t\t\t}\n' );
	hWnd.document.write( '\t\t</style>\n' );
	hWnd.document.write( '\t</head>\n' );
	hWnd.document.write( '\t<body>\n' );
	hWnd.document.write( '\t\t&nbsp;\n' );
	hWnd.document.write( '\t</body>\n' );
	hWnd.document.write( '</html>\n' );
	hWnd.document.close();
	hWnd.document.title = _title;
}

function SyncText( edit_box, counter_box, max_val ) {
	if ( max_val <= 0 ) { max_val = 1; }
	if ( edit_box.value.length > max_val ) { edit_box.value = edit_box.value.substring( 0, max_val ); }
	var __buff = ( max_val - edit_box.value.length );
	if ( __buff >= 100 ) {
		counter_box.value = ' ' + __buff + ' ';
	} else if ( __buff >= 10 ) {
		counter_box.value = ' 0' + __buff + ' ';
	} else {
		counter_box.value = ' 00' + __buff + ' ';
	}
}

function __day() {
	for ( i = 1; i <= 31; i++ ) { document.write( '<option value=\"' + i + '\">' + i + '</option>\n' ); }
}

function __month() {
	for ( i = 0; i < monthName.length; i++ ) { document.write( '<option value=\"' + monthName[ i ].toLowerCase() + '\">' + monthName[ i ] + '</option>\n' ); }
}

function __year() {
	var __buff = __getYear( new Date() );
	for ( i = 1901; i <= __buff; i++ ) { document.write( '<option value=\"' + i + '\">' + i + '</option>\n' ); }
}
